osc_lib.exceptions
Module¶Exception definitions.
osc_lib.exceptions.
AuthorizationFailure
¶Bases: exceptions.Exception
osc_lib.exceptions.
BadRequest
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 400 - Bad request: you sent some malformed data.
http_status
= 400¶message
= 'Bad request'¶osc_lib.exceptions.
ClientException
(code, message=None, details=None)¶Bases: exceptions.Exception
The base exception class for all exceptions this library raises.
osc_lib.exceptions.
CommandError
¶Bases: exceptions.Exception
osc_lib.exceptions.
Conflict
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 409 - Conflict
http_status
= 409¶message
= 'Conflict'¶osc_lib.exceptions.
EndpointNotFound
¶Bases: exceptions.Exception
Could not find Service or Region in Service Catalog.
osc_lib.exceptions.
Forbidden
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 403 - Forbidden: not authorized to access to this resource.
http_status
= 403¶message
= 'Forbidden'¶osc_lib.exceptions.
HTTPNotImplemented
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 501 - Not Implemented: server does not support this operation.
http_status
= 501¶message
= 'Not Implemented'¶osc_lib.exceptions.
InvalidValue
¶Bases: exceptions.Exception
An argument value is not valid: wrong type, out of range, etc
message
= 'Supplied value is not valid'¶osc_lib.exceptions.
NoTokenLookupException
¶Bases: exceptions.Exception
This does not support looking up endpoints from an existing token.
osc_lib.exceptions.
NotFound
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 404 - Not found
http_status
= 404¶message
= 'Not found'¶osc_lib.exceptions.
OverLimit
(code, message=None, details=None)¶Bases: osc_lib.exceptions.ClientException
HTTP 413 - Over limit: reached the API limits for this time period.
http_status
= 413¶message
= 'Over limit'¶osc_lib.exceptions.
PluginAttributeError
¶Bases: exceptions.Exception
A plugin threw an AttributeError while being lazily loaded.
Bases: osc_lib.exceptions.ClientException
HTTP 401 - Unauthorized: bad credentials.
osc_lib.exceptions.
UnsupportedVersion
¶Bases: exceptions.Exception
The user is trying to use an unsupported version of the API
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.