The quantumclient.openstack.common.exception Module

Exceptions common to OpenStack projects

exception quantumclient.openstack.common.exception.ApiError(message='Unknown', code='Unknown')

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.BadInputError

Bases: exceptions.Exception

Error resulting from a client sending bad input to a server

exception quantumclient.openstack.common.exception.BadStoreUri(uri, reason)

Bases: quantumclient.openstack.common.exception.Error

msg = 'The Store URI %s was malformed. Reason: %s'
exception quantumclient.openstack.common.exception.ClientConnectionError

Bases: exceptions.Exception

Error resulting from a client connecting to a server

exception quantumclient.openstack.common.exception.DatabaseMigrationError(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.Duplicate(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.Error(message=None)

Bases: exceptions.Exception

exception quantumclient.openstack.common.exception.Invalid(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.InvalidContentType(**kwargs)

Bases: quantumclient.openstack.common.exception.OpenstackException

message = 'Invalid content type %(content_type)s'
exception quantumclient.openstack.common.exception.MalformedRequestBody(**kwargs)

Bases: quantumclient.openstack.common.exception.OpenstackException

message = 'Malformed message body: %(reason)s'
exception quantumclient.openstack.common.exception.MissingArgumentError(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.NotAuthorized(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.NotEmpty(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.NotFound(message=None)

Bases: quantumclient.openstack.common.exception.Error

exception quantumclient.openstack.common.exception.OpenstackException(**kwargs)

Bases: exceptions.Exception

Base Exception

To correctly use this class, inherit from it and define a ‘message’ property. That message will get printf’d with the keyword arguments provided to the constructor.

message = 'An unknown exception occurred'
exception quantumclient.openstack.common.exception.UnknownScheme(scheme)

Bases: quantumclient.openstack.common.exception.Error

msg = "Unknown scheme '%s' found in URI"
quantumclient.openstack.common.exception.wrap_exception(f)

This Page