Exception definitions.
Bases: exceptions.Exception
Bases: keystoneclient.exceptions.ClientException
HTTP 400 - Bad request: you sent some malformed data.
Bases: exceptions.Exception
The base exception class for all exceptions this library raises.
Bases: exceptions.Exception
Bases: keystoneclient.exceptions.ClientException
HTTP 409 - Conflict
Bases: exceptions.Exception
The service catalog is empty.
Bases: exceptions.Exception
Could not find Service or Region in Service Catalog.
Bases: keystoneclient.exceptions.ClientException
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
Bases: keystoneclient.exceptions.ClientException
HTTP 501 - Not Implemented: the server does not support this operation.
Bases: exceptions.Exception
This form of authentication does not support looking up endpoints from an existing token.
Bases: keystoneclient.exceptions.ClientException
HTTP 404 - Not found
Bases: keystoneclient.exceptions.ClientException
HTTP 413 - Over limit: you’re over the API limits for this time period.
Bases: keystoneclient.exceptions.ClientException
HTTP 503 - Service Unavailable: The server is currently unavailable.
Bases: keystoneclient.exceptions.ClientException
HTTP 401 - Unauthorized: bad credentials.
Bases: exceptions.Exception
Return an instance of an ClientException or subclass based on an requests response.
Usage:
resp = requests.request(...)
if resp.status_code != 200:
raise exception_from_response(resp, resp.text)