Exceptions

Exception definitions.

exception keystoneclient.exceptions.BadRequest(code, message=None, details=None)

HTTP 400 - Bad request: you sent some malformed data.

exception keystoneclient.exceptions.ClientException(code, message=None, details=None)

The base exception class for all exceptions this library raises.

exception keystoneclient.exceptions.Conflict(code, message=None, details=None)

HTTP 409 - Conflict

exception keystoneclient.exceptions.EndpointNotFound

Could not find Service or Region in Service Catalog.

exception keystoneclient.exceptions.Forbidden(code, message=None, details=None)

HTTP 403 - Forbidden: your credentials don’t give you access to this resource.

exception keystoneclient.exceptions.HTTPNotImplemented(code, message=None, details=None)

HTTP 501 - Not Implemented: the server does not support this operation.

exception keystoneclient.exceptions.NoTokenLookupException

This form of authentication does not support looking up endpoints from an existing token.

exception keystoneclient.exceptions.NotFound(code, message=None, details=None)

HTTP 404 - Not found

exception keystoneclient.exceptions.OverLimit(code, message=None, details=None)

HTTP 413 - Over limit: you’re over the API limits for this time period.

exception keystoneclient.exceptions.Unauthorized(code, message=None, details=None)

HTTP 401 - Unauthorized: bad credentials.

keystoneclient.exceptions.from_response(response, body)

Return an instance of an ClientException or subclass based on an httplib2 response.

Usage:

resp, body = http.request(...)
if resp.status != 200:
    raise exception_from_response(resp, body)

Previous topic

API Reference

Next topic

Release notes

This Page