Source code for gazu.exception

[docs]class HostException(Exception): """ Error raised when host is not valid. """ pass
[docs]class AuthFailedException(Exception): """ Error raised when user credentials are wrong. """ pass
[docs]class NotAuthenticatedException(Exception): """ Error raised when a 401 error (not authenticated) is sent by the API. """ pass
[docs]class NotAllowedException(Exception): """ Error raised when a 403 error (not authorized) is sent by the API. """ pass
[docs]class MethodNotAllowedException(Exception): """ Error raised when a 405 error (method not handled) is sent by the API. """ pass
[docs]class RouteNotFoundException(Exception): """ Error raised when a 404 error (not found) is sent by the API. """ pass
[docs]class ServerErrorException(Exception): """ Error raised when a 500 error (server error) is sent by the API. """ pass
[docs]class ParameterException(Exception): """ Error raised when a 400 error (argument error) is sent by the API. """ pass
[docs]class UploadFailedException(Exception): """ Error raised when an error while uploading a file, mainly to handle cases where processing that occurs on the remote server fails. """ pass
[docs]class TooBigFileException(Exception): """ Error raised when a 413 error (payload too big error) is sent by the API. """ pass
[docs]class TaskStatusNotFoundException(Exception): """ Error raised when a task status is not found. """ pass
[docs]class DownloadFileException(Exception): """ Error raised when a file can't be downloaded. """
[docs]class TaskMustBeADictException(Exception): """ Error raised when a task should be a dict. """