Last active
May 22, 2017 18:50
-
-
Save mmerickel/2e83f4af6c7d5eae34947b8f1f075f61 to your computer and use it in GitHub Desktop.
pyramid exception handling workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pyramid_retry +--------> if exc not retryable, render response | |
if exc retryable, ignore exc and try again | |
+ | |
| | |
| | |
v | |
pyramid_debugtoolbar | |
+ | |
| | |
| | |
v | |
pyramid_tm +--------> if exc caught then abort and reraise | |
if request.exception then abort and return response | |
+ if abort or commit raises, render response | |
| | |
| | |
v | |
excview +--------> if exc caught, render response and set request.exception | |
if no exception then reraise | |
+ | |
| | |
| | |
v | |
app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment