Handling Errors with the error Object