Exceptions

Vidispine Interface Exceptions

Exceptions that can be raised when doing operations with the Vidispine interface.

exception portal.vidispine.iexception.CannoEnableVidispineUserException
exception portal.vidispine.iexception.CannotCreateVidispineUserException
exception portal.vidispine.iexception.InvalidResourceID(value, status_code=400)

Thrown when trying to get a resource with a wrong resource ID

exception portal.vidispine.iexception.NotAuthorizedError(value, status_code=None)

Thrown when a user is not authorized to do an action

exception portal.vidispine.iexception.NotFoundError(value, status_code=None)

Thrown when a 404 comes from the server

exception portal.vidispine.iexception.ServerCommunicationError(value, status_code=None)

Thrown when there is an error with communication with the server.

exception portal.vidispine.iexception.VSAPIError(value, reason=None, status_code=None)

Thrown when an error happens

test_regressions.TestVSAPIErrorRegressions has testcases for this.

exception portal.vidispine.iexception.VidispinePortalConnectionException
portal.vidispine.iexception.handleRestAPIError(e)

Parses the exception sent by Vidispine and raises the appropriate error