The heat.openstack.common.exception Module

Exceptions common to OpenStack projects

exception heat.openstack.common.exception.ApiError(message='Unknown', code='Unknown')[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.BadInputError[source]

Bases: exceptions.Exception

Error resulting from a client sending bad input to a server

exception heat.openstack.common.exception.BadStoreUri(uri, reason)[source]

Bases: heat.openstack.common.exception.Error

msg = 'The Store URI %s was malformed. Reason: %s'
exception heat.openstack.common.exception.ClientConnectionError[source]

Bases: exceptions.Exception

Error resulting from a client connecting to a server

exception heat.openstack.common.exception.DatabaseMigrationError(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.Duplicate(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.Error(message=None)[source]

Bases: exceptions.Exception

exception heat.openstack.common.exception.Invalid(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.InvalidContentType(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = 'Invalid content type %(content_type)s'
exception heat.openstack.common.exception.MalformedRequestBody(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = 'Malformed message body: %(reason)s'
exception heat.openstack.common.exception.MissingArgumentError(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.NotAuthorized(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.NotEmpty(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.NotFound(message=None)[source]

Bases: heat.openstack.common.exception.Error

exception heat.openstack.common.exception.OpenstackException(**kwargs)[source]

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 heat.openstack.common.exception.UnknownScheme(scheme)[source]

Bases: heat.openstack.common.exception.Error

msg = "Unknown scheme '%s' found in URI"
heat.openstack.common.exception.wrap_exception(f)[source]

This Page