Fix typo
API raises exceptions rather then returning error codes

Signed-off-by: Thanh Ha <thanh.ha@alumni.carleton.ca>