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

add core exceptions #26

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

add core exceptions #26

wants to merge 2 commits into from

Conversation

BurnzZ
Copy link
Contributor

@BurnzZ BurnzZ commented Feb 25, 2022

Built on top of #22.


  • Docs
  • Changelog
  • Move existing RequestBackendError to this new module

@@ -0,0 +1,13 @@
class ReloadResponseData(Exception):
Copy link
Contributor Author

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.

@BurnzZ BurnzZ requested a review from kmike February 25, 2022 08:46
@BurnzZ BurnzZ changed the title add ReloadResponseData exception add core exceptions Feb 25, 2022
pass


class DelegateFallback(Exception):
Copy link
Contributor Author

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).

@VMRuiz
Copy link

VMRuiz commented Apr 7, 2022

LGTM! These exceptions look like a good solution to common scenarios

Base automatically changed from additional-requests to master April 28, 2022 04:03
@BurnzZ BurnzZ mentioned this pull request Nov 4, 2022
4 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

Successfully merging this pull request may close these issues.

2 participants