The oslo_vmware.exceptions Module

The oslo_vmware.exceptions Module

Exception definitions.

exception oslo_vmware.exceptions.AlreadyExistsException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 409
msg_fmt = u'Resource already exists.'
exception oslo_vmware.exceptions.CannotDeleteFileException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 403
msg_fmt = u'Cannot delete file.'
exception oslo_vmware.exceptions.DuplicateName(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

msg_fmt = u'Duplicate name.'
exception oslo_vmware.exceptions.FileAlreadyExistsException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 409
msg_fmt = u'File already exists.'
exception oslo_vmware.exceptions.FileFaultException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 409
msg_fmt = u'File fault.'
exception oslo_vmware.exceptions.FileLockedException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 403
msg_fmt = u'File locked.'
exception oslo_vmware.exceptions.FileNotFoundException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 404
msg_fmt = u'File not found.'
exception oslo_vmware.exceptions.ImageTransferException(message, cause=None)

Bases: oslo_vmware.exceptions.VMwareDriverException

Thrown when there is an error during image transfer.

exception oslo_vmware.exceptions.InvalidPowerStateException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 409
msg_fmt = u'Invalid power state.'
exception oslo_vmware.exceptions.InvalidPropertyException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 400
msg_fmt = u'Invalid property.'
exception oslo_vmware.exceptions.ManagedObjectNotFoundException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 404
msg_fmt = u'Managed object not found.'
exception oslo_vmware.exceptions.MissingParameter(message=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VMwareDriverException

msg_fmt = u'Missing parameter : %(param)s'
exception oslo_vmware.exceptions.NoDiskSpaceException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

msg_fmt = u'Insufficient disk space.'
exception oslo_vmware.exceptions.NoPermissionException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 403
msg_fmt = u'No Permission.'
exception oslo_vmware.exceptions.NotAuthenticatedException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

code = 403
msg_fmt = u'Not Authenticated.'
exception oslo_vmware.exceptions.TaskInProgress(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

msg_fmt = u'Entity has another operation in process.'
exception oslo_vmware.exceptions.ToolsUnavailableException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VimException

msg_fmt = u'VMware Tools is not running.'
exception oslo_vmware.exceptions.UseLinkedCloneConfigurationFault(message=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VMwareDriverConfigurationException

msg_fmt = u'No default value for use_linked_clone found.'
exception oslo_vmware.exceptions.VMwareDriverConfigurationException(message=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VMwareDriverException

Base class for all configuration exceptions.

msg_fmt = u'VMware Driver configuration fault.'
exception oslo_vmware.exceptions.VMwareDriverException(message=None, details=None, **kwargs)

Bases: exceptions.Exception

Base oslo.vmware 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.

description
msg
msg_fmt = u'An unknown exception occurred.'
exception oslo_vmware.exceptions.VimAttributeException(message, cause=None)

Bases: oslo_vmware.exceptions.VMwareDriverException

Thrown when a particular attribute cannot be found.

exception oslo_vmware.exceptions.VimConnectionException(message, cause=None)

Bases: oslo_vmware.exceptions.VMwareDriverException

Thrown when there is a connection problem.

exception oslo_vmware.exceptions.VimException(message=None, cause=None, details=None, **kwargs)

Bases: oslo_vmware.exceptions.VMwareDriverException

The base exception class for all VIM related exceptions.

exception oslo_vmware.exceptions.VimFaultException(fault_list, message, cause=None, details=None)

Bases: oslo_vmware.exceptions.VimException

Exception thrown when there are unrecognized VIM faults.

description
exception oslo_vmware.exceptions.VimSessionOverLoadException(message, cause=None)

Bases: oslo_vmware.exceptions.VMwareDriverException

Thrown when there is an API call overload at the VMware server.

oslo_vmware.exceptions.get_fault_class(name)

Get a named subclass of VimException.

oslo_vmware.exceptions.register_fault_class(name, exception)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.