-
Notifications
You must be signed in to change notification settings - Fork 15
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
add core exceptions #26
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,13 @@ | |||
class ReloadResponseData(Exception): |
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.
I was thinking of a way to indicate the maximum retry attempts in this exception.
However, it's best to leave that to the framework using web-poet
to standardize limits, delays, etc.
pass | ||
|
||
|
||
class DelegateFallback(Exception): |
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.
should be split into expected and unexpected fallback requests. One of them should trigger some sort of alerts or monitoring actions (e.g. unexpected layouts).
LGTM! These exceptions look like a good solution to common scenarios |
Built on top of #22.
RequestBackendError
to this new module