-
Notifications
You must be signed in to change notification settings - Fork 9
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
Exception handling rework #329
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have actor.process_exception
?
Is there a way to process exception as part of regular actor process? (it is allowed to change actor service however you want -- e.g. split it into sub-services)
I would say that a separate step is required, because |
Ok. I think it might be better to handle exceptions separately. But I'm pretty sure this still has a previously discussed problem of leaving ctx in an incomplete state if an exception happens inside of an actor service ( Other than that -- I think it looks decent. I don't like the copy-paste in |
To keep in mind while reading the proposal:
Proposal on how to handle exceptions:
Exception info should include exception class; exception message; exception traceback; pipeline service / actor stage that raised the exception. Do tell if there are any suggestions or if I'm overthinking exception handling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Exceptional conditions support added. Exceptional conditions are similar to regular conditions, however they are triggered on exceptions instead.
Checklist
To Consider
.ignore
files, scripts (such aslint
), distribution manifest (if files are added/deleted)