aistore.sdk.response_handler
aistore.sdk.response_handler
Module Contents
Classes
API
Bases: ResponseHandler
Handle responses from an AIS cluster
exc_class
staticmethod
staticmethod
Parse response contents to raise an appropriate AISError object.
Parameters:
r
HTTP status code of an HTTPError returned from AIS
Returns: AISError
If the error doesn’t match any specific conditions.
Abstract
Abstract base class for handling HTTP API responses
exc_class
Exception class for generic error handling (must be implemented)
Method compatible with requests hook signature to process an HTTP response
Parameters:
r
Response from the server
abstract
Parse custom exception from failed response (must be implemented)