Added the use of the Error object and a custom object for the 'throw' statements