Previous topic

The cinder.openstack.common.context Module

Next topic

The cinder.openstack.common.excutils Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.openstack.common.exception Module

Exceptions common to OpenStack projects

exception ApiError(message='Unknown', code='Unknown')

Bases: cinder.openstack.common.exception.Error

exception BadInputError

Bases: exceptions.Exception

Error resulting from a client sending bad input to a server

exception BadStoreUri(uri, reason)

Bases: cinder.openstack.common.exception.Error

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

Bases: exceptions.Exception

Error resulting from a client connecting to a server

exception DatabaseMigrationError(message=None)

Bases: cinder.openstack.common.exception.Error

exception Duplicate(message=None)

Bases: cinder.openstack.common.exception.Error

exception Error(message=None)

Bases: exceptions.Exception

exception Invalid(message=None)

Bases: cinder.openstack.common.exception.Error

exception InvalidContentType(**kwargs)

Bases: cinder.openstack.common.exception.OpenstackException

message = 'Invalid content type %(content_type)s'
exception MalformedRequestBody(**kwargs)

Bases: cinder.openstack.common.exception.OpenstackException

message = 'Malformed message body: %(reason)s'
exception MissingArgumentError(message=None)

Bases: cinder.openstack.common.exception.Error

exception NotAuthorized(message=None)

Bases: cinder.openstack.common.exception.Error

exception NotEmpty(message=None)

Bases: cinder.openstack.common.exception.Error

exception NotFound(message=None)

Bases: cinder.openstack.common.exception.Error

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 ProcessExecutionError(stdout=None, stderr=None, exit_code=None, cmd=None, description=None)

Bases: exceptions.IOError

exception UnknownScheme(scheme)

Bases: cinder.openstack.common.exception.Error

msg = "Unknown scheme '%s' found in URI"
wrap_exception(f)