typo throw exceptions instead of errors