Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Custom Exceptions #72

Open
ronanguilloux opened this issue Sep 20, 2015 · 2 comments
Open

Add Custom Exceptions #72

ronanguilloux opened this issue Sep 20, 2015 · 2 comments

Comments

@ronanguilloux
Copy link
Owner

ZipcodeException, etc.

@soullivaneuh
Copy link
Contributor

What is the goal?

A simple ValidatorException would not be sufficient?

@ronanguilloux
Copy link
Owner Author

Well, mainly because having multiple exception classes allows the programmer (the API user) to be specific in their catch clauses. Just not to say that class can carry information about the error that's caused the exception. And, of course, custom exceptions provide a type safe mechanism to detect an error condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants