pyvcloud.vcd.exceptions module

exception pyvcloud.vcd.exceptions.AccessForbiddenException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 403 response code.

exception pyvcloud.vcd.exceptions.AlreadyExistsException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised if we try to create an already existing entity in vcd.

exception pyvcloud.vcd.exceptions.AuthenticationException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when authentication fails in vcd.

exception pyvcloud.vcd.exceptions.BadRequestException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 400 response code.

exception pyvcloud.vcd.exceptions.ClientException

Bases: pyvcloud.vcd.exceptions.SDKException

Base class for all exceptions arising in the client(pyvcloud).

exception pyvcloud.vcd.exceptions.ConflictException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 409 response code.

exception pyvcloud.vcd.exceptions.DownloadException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when download of an entity fails in vcd.

exception pyvcloud.vcd.exceptions.EntityNotFoundException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when an entity is not found in vcd.

exception pyvcloud.vcd.exceptions.InternalServerException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 500 response code.

exception pyvcloud.vcd.exceptions.InvalidContentLengthException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 416 response code.

exception pyvcloud.vcd.exceptions.InvalidParameterException

Bases: pyvcloud.vcd.exceptions.ClientException

Raised when a parameter is invalid in pyvcloud.

exception pyvcloud.vcd.exceptions.InvalidStateException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when the state of an entity in vcd is not valid.

exception pyvcloud.vcd.exceptions.LinkException(href, rel, media_type)

Bases: pyvcloud.vcd.exceptions.VcdException

Base class for vcd links related Exceptions.

exception pyvcloud.vcd.exceptions.MethodNotAllowedException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 405 response code.

exception pyvcloud.vcd.exceptions.MissingLinkException(href, rel, media_type)

Bases: pyvcloud.vcd.exceptions.LinkException

Raised when a link is missing from the vcd response.

exception pyvcloud.vcd.exceptions.MissingParametersError

Bases: pyvcloud.vcd.exceptions.ClientException

Raised when a parameter is missing in pyvcloud.

exception pyvcloud.vcd.exceptions.MissingRecordException

Bases: pyvcloud.vcd.exceptions.RecordException

Raised when a record is missing in vcd.

exception pyvcloud.vcd.exceptions.MultipleLinksException(href, rel, media_type)

Bases: pyvcloud.vcd.exceptions.LinkException

Raised when multiple links are present in vcd response.

exception pyvcloud.vcd.exceptions.MultipleRecordsException

Bases: pyvcloud.vcd.exceptions.RecordException

Raised when multiple records are present in vcd.

exception pyvcloud.vcd.exceptions.NotAcceptableException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 406 response code.

exception pyvcloud.vcd.exceptions.NotFoundException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 404 response code.

exception pyvcloud.vcd.exceptions.OperationNotSupportedException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when a particular operation is not supported in vcd.

exception pyvcloud.vcd.exceptions.RecordException

Bases: pyvcloud.vcd.exceptions.VcdException

Base class for vcd records related exception.

exception pyvcloud.vcd.exceptions.RequestTimeoutException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 408 response code.

exception pyvcloud.vcd.exceptions.SDKException

Bases: Exception

Base class for all pyvcloud Exceptions.

exception pyvcloud.vcd.exceptions.SDKRequestException

Bases: pyvcloud.vcd.exceptions.ClientException, OSError

Raised when an exception occurred during vcd request.

exception pyvcloud.vcd.exceptions.SessionException

Bases: pyvcloud.vcd.exceptions.ClientException

Raised for any session related exceptions in pyvcloud.

exception pyvcloud.vcd.exceptions.TaskTimeoutException

Bases: pyvcloud.vcd.exceptions.ClientException, TimeoutError

Raised when a task in vcd timeout.

exception pyvcloud.vcd.exceptions.UnauthorizedException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 401 response code.

exception pyvcloud.vcd.exceptions.UnknownApiException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns an unknown response code.

exception pyvcloud.vcd.exceptions.UnsupportedMediaTypeException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdResponseException

Raised when vcd returns 415 response code.

exception pyvcloud.vcd.exceptions.UploadException

Bases: pyvcloud.vcd.exceptions.VcdException

Raised when upload of an entity fails in vcd.

exception pyvcloud.vcd.exceptions.ValidationError

Bases: pyvcloud.vcd.exceptions.ClientException

Raised when validation error occurs in pyvcloud.

exception pyvcloud.vcd.exceptions.VcdException

Bases: pyvcloud.vcd.exceptions.SDKException

Base class for all vcd related Exceptions.

exception pyvcloud.vcd.exceptions.VcdResponseException(status_code, request_id, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdException

Base class for all vcd response related Exceptions.

exception pyvcloud.vcd.exceptions.VcdTaskException(error_message, vcd_error)

Bases: pyvcloud.vcd.exceptions.VcdException

Exception related to tasks in vcd.