The troveclient.compat.exceptions Module

The troveclient.compat.exceptions Module

exception troveclient.compat.exceptions.AmbiguousEndpoints(endpoints=None)

Bases: exceptions.Exception

Found more than one matching endpoint in Service Catalog.

exception troveclient.compat.exceptions.AuthUrlNotGiven

Bases: troveclient.compat.exceptions.EndpointNotFound

The auth url was not given.

exception troveclient.compat.exceptions.AuthorizationFailure

Bases: exceptions.Exception

exception troveclient.compat.exceptions.BadRequest(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

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

http_status = 400
message = 'Bad request'
exception troveclient.compat.exceptions.ClientException(code, message=None, details=None, request_id=None)

Bases: exceptions.Exception

The base exception class for all exceptions this library raises.

exception troveclient.compat.exceptions.CommandError

Bases: exceptions.Exception

exception troveclient.compat.exceptions.Conflict(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

HTTP 409 - Conflict.

http_status = 409
message = 'Conflict'
exception troveclient.compat.exceptions.EndpointNotFound

Bases: exceptions.Exception

Could not find Service or Region in Service Catalog.

exception troveclient.compat.exceptions.Forbidden(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

HTTP 403 - Forbidden: your don’t have access to this resource.

http_status = 403
message = 'Forbidden'
exception troveclient.compat.exceptions.HTTPNotImplemented(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

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

http_status = 501
message = 'Not Implemented'
exception troveclient.compat.exceptions.NoTokenLookupException

Bases: exceptions.Exception

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

exception troveclient.compat.exceptions.NoUniqueMatch

Bases: exceptions.Exception

exception troveclient.compat.exceptions.NotFound(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

HTTP 404 - Not found.

http_status = 404
message = 'Not found'
exception troveclient.compat.exceptions.OverLimit(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

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

http_status = 413
message = 'Over limit'
exception troveclient.compat.exceptions.ResponseFormatError

Bases: exceptions.Exception

Could not parse the response format.

exception troveclient.compat.exceptions.ServiceUrlNotGiven

Bases: troveclient.compat.exceptions.EndpointNotFound

The service url was not given.

exception troveclient.compat.exceptions.Unauthorized(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

HTTP 401 - Unauthorized: bad credentials.

http_status = 401
message = 'Unauthorized'
exception troveclient.compat.exceptions.UnprocessableEntity(code, message=None, details=None, request_id=None)

Bases: troveclient.compat.exceptions.ClientException

HTTP 422 - Unprocessable Entity: The request cannot be processed.

http_status = 422
message = 'Unprocessable Entity'
exception troveclient.compat.exceptions.UnsupportedVersion

Bases: exceptions.Exception

Indicates that the user is trying to use an unsupported version of the API.

troveclient.compat.exceptions.from_response(response, body)

Return an instance of an ClientException based on a request’s response.

Usage:

resp, body = http.request(...)
if resp.status != 200:
    raise exception_from_response(resp, body)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

python-troveclient 2.12.1.dev1