Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Should our validation exception be a sub-class of ArgumentError instead of StandardError? #14

Open
nicolasdespres opened this issue May 21, 2013 · 2 comments
Labels

Comments

@nicolasdespres
Copy link
Owner

  • Pro:
    • More descriptive
  • Cons:
    • Will be caught by ArgumentError rescue_from...
@chiting
Copy link

chiting commented May 30, 2014

You can filter the sub-class in the rescue_from method.

@nicolasdespres
Copy link
Owner Author

I think I did not want it to be caught by default.

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

No branches or pull requests

2 participants