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

after_error should take list of exception classes #71

Closed
catmando opened this issue Dec 5, 2018 · 1 comment
Closed

after_error should take list of exception classes #71

catmando opened this issue Dec 5, 2018 · 1 comment

Comments

@catmando
Copy link
Contributor

catmando commented Dec 5, 2018

and all run the after error block if one of classes match. If no arg is provided then the block will receive all exceptions:

after_error(MyErrorClass, SomeOtherError) do
  # will only run if MyErrorClass or SomeOtherError was raised
end
...
after_error do
  # will stop here on all errors
end
@catmando
Copy link
Contributor Author

catmando commented Dec 7, 2018

superceeded by #77

@catmando catmando closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant