[docs]class HostException(Exception):
"""
Error raised when host is not valid.
"""
[docs]class AuthFailedException(Exception):
"""
Error raised when user credentials are wrong.
"""
[docs]class NotAuthenticatedException(Exception):
"""
Error raised when a 401 error (not authenticated) is sent by the API.
"""
[docs]class NotAllowedException(Exception):
"""
Error raised when a 403 error (not authorized) is sent by the API.
"""
[docs]class MethodNotAllowedException(Exception):
"""
Error raised when a 405 error (method not handled) is sent by the API.
"""
[docs]class RouteNotFoundException(Exception):
"""
Error raised when a 404 error (not found) is sent by the API.
"""
[docs]class ServerErrorException(Exception):
"""
Error raised when a 500 error (server error) is sent by the API.
"""
[docs]class ParameterException(Exception):
"""
Error raised when a 400 error (argument error) is sent by the API.
"""
[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.
"""
[docs]class TooBigFileException(Exception):
"""
Error raised when a 413 error (payload too big error) is sent by the API.
"""
[docs]class TaskStatusNotFoundException(Exception):
"""
Error raised when a task status is not found.
"""
[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.
"""
[docs]class FileDoesntExistException(Exception):
"""
Error raised when a file should be existed when we submit a preview.
"""
[docs]class ProjectDoesntExistException(Exception):
"""
Error raised when a project isn't available.
"""