Register error handlers

Bug #1470243 reported by Everett Toews
6
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.

Revision history for this message
Ian Cordasco (icordasc) wrote :

Why not include the response object on the final exception? That has the original request object attached.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.