-
Notifications
You must be signed in to change notification settings - Fork 4
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
Typed Error Exceptions #39
Comments
Some examples of the types of errors we're talking about: "Phone number is invalid", or "Person must be a valid accessible contact". |
Could use a module exception tagging approach like https://gist.github.com/garethrees/10373806 |
Interesting! In the case of input validation, the API returns a Were you thinking of extending, say, the It’s quite possible I’m missing something obvious though, would love to hear more 😄 |
We have a set of cases in our app where we have special handling for different errors returned by the ngpvan api.
We have thought about extending the exception typing in the gem to be aware of various more finely typed sorts of errors that come back from the api (often data validation issues). we could then catch those typed exceptions in our app.
Would that be a welcome improvement? There are a few sorts of errors that are recoverable on our side and typing the exceptions would help us cleanup some code on our side.
The text was updated successfully, but these errors were encountered: