Register error handlers
Bug #1470243 reported by
Everett Toews
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Add the capability to allow users to register error handlers.
Users would be able to register error handlers. These handlers would be invoked when an errors occurs around the code that makes the request to the API. The handlers would receive the full context (full request and response) as params to a handler function call.
The user could do whatever they need to with the error. Including re-raising the error after some processing.
Changed in python-openstacksdk: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
milestone: | none → 1.0 |
Changed in python-openstacksdk: | |
milestone: | 1.0 → none |
To post a comment you must log in.
Why not include the response object on the final exception? That has the original request object attached.