Congress base exception handling.
congress.exception.
BadConfig
(message=None, **kwargs)¶congress.exception.
BadRequest
(message=None, **kwargs)¶Bases: congress.exception.CongressException
code
= 400¶msg_fmt
= 'Bad request'¶congress.exception.
Conflict
(message=None, **kwargs)¶Bases: congress.exception.CongressException
code
= 409¶msg_fmt
= 'Conflict'¶congress.exception.
CongressException
(message=None, **kwargs)¶Bases: exceptions.Exception
Base Congress Exception
To correctly use this class, inherit from it and define a ‘msg_fmt’ property. That msg_fmt will get printf’d with the keyword arguments provided to the constructor.
code
= 500¶format_message
()¶headers
= {}¶msg_fmt
= 'An unknown exception occurred.'¶safe
= False¶congress.exception.
DanglingReference
(message=None, **kwargs)¶Bases: congress.exception.Conflict
congress.exception.
DataServiceError
¶Bases: exceptions.Exception
congress.exception.
DataSourceConfigException
¶Bases: exceptions.Exception
congress.exception.
DatabaseDataError
(message=None, **kwargs)¶Bases: congress.exception.BadRequest
msg_fmt
= 'Database backend experienced a data error. E.g. value out of range, text string too long.'¶congress.exception.
DatabaseError
(message=None, **kwargs)¶Bases: congress.exception.CongressException
msg_fmt
= 'Database backend experienced an unknown error.'¶congress.exception.
DatasourceCreationError
(message=None, **kwargs)¶Bases: congress.exception.BadConfig
msg_fmt
= 'Datasource could not be created on the DSE: %(value)s'¶congress.exception.
DatasourceDriverException
(message=None, **kwargs)¶congress.exception.
DatasourceNameInUse
(message=None, **kwargs)¶Bases: congress.exception.Conflict
msg_fmt
= 'Datasource already in use with name %(value)s'¶congress.exception.
DatasourceNotFound
(message=None, **kwargs)¶Bases: congress.exception.NotFound
msg_fmt
= 'Datasource not found %(id)s'¶congress.exception.
DriverNotFound
(message=None, **kwargs)¶Bases: congress.exception.NotFound
msg_fmt
= 'Driver not found %(id)s. Either not supported or disabled by deployer in Congress config'¶congress.exception.
DuplicateTableName
¶Bases: exceptions.Exception
congress.exception.
Forbidden
(message=None, **kwargs)¶Bases: congress.exception.CongressException
code
= 403¶msg_fmt
= 'Not authorized.'¶congress.exception.
IncompleteSchemaException
(message=None, **kwargs)¶congress.exception.
InvalidDatasourceName
(message=None, **kwargs)¶Bases: congress.exception.BadConfig
msg_fmt
= 'Datasource name %(value) is invalid. Cannot be empty or start with underscore. Must be valid in policy language'¶congress.exception.
InvalidDriver
(message=None, **kwargs)¶Bases: congress.exception.BadConfig
msg_fmt
= 'Invalid driver: %(driver)s'¶congress.exception.
InvalidDriverOption
(message=None, **kwargs)¶Bases: congress.exception.BadConfig
msg_fmt
= 'Invalid driver options: %(invalid_options)s'¶congress.exception.
InvalidParamException
¶Bases: exceptions.Exception
congress.exception.
InvalidPolicyInput
(message=None, **kwargs)¶Bases: congress.exception.BadRequest
msg_fmt
= 'Input policy item violates schema.'¶congress.exception.
InvalidTranslationType
¶Bases: exceptions.Exception
congress.exception.
LazyTable
(message=None, **kwargs)¶Bases: congress.exception.BadRequest
msg_fmt
= 'table %(lazy_table)s is a lazy table and is not subscribed.'¶congress.exception.
MissingRequiredConfigOptions
(message=None, **kwargs)¶Bases: congress.exception.BadConfig
msg_fmt
= 'Missing required config options: %(missing_options)s'¶congress.exception.
NotFound
(message=None, **kwargs)¶Bases: congress.exception.CongressException
code
= 404¶msg_fmt
= 'Resource not found.'¶congress.exception.
PolicyException
(msg=None, obj=None, line=None, col=None, name=None, data=None, **kwargs)¶congress.exception.
PolicyNotAuthorized
(message=None, **kwargs)¶Bases: congress.exception.Forbidden
msg_fmt
= "Policy doesn't allow %(action)s to be performed."¶congress.exception.
PolicyRuntimeException
(message=None, **kwargs)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.