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

Raised exception in decorator should prevent further processing #149

Open
kbakk opened this issue Mar 18, 2021 · 0 comments
Open

Raised exception in decorator should prevent further processing #149

kbakk opened this issue Mar 18, 2021 · 0 comments

Comments

@kbakk
Copy link
Collaborator

kbakk commented Mar 18, 2021

Copying (with a little rephrasing) discussion from #131 to a new issue here.

Is your feature request related to a problem? Please describe.
We should allow the user to control whether an exception should be ignored or not, if raised in a decorator.

E.g. I can't configure a decorator that if failing, it will stop the execution.

Describe the solution you'd like
If RecoverableDecoratorError is raised it will be ignored, all other exceptions are caught and raised in the decorator runner.

Describe alternatives you've considered
We could introduce a new exception type NoRecoverableDecoratorError that can be raised within a decorator, that will halt the execution.

Additional context
Discussion in PR: #131 (comment)

@kbakk kbakk mentioned this issue Mar 18, 2021
2 tasks
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