exception vs error code

TODO: To be continue

Reference