Exceptions¶
-
exception
qbittorrentapi.exceptions.APIError¶ Bases:
ExceptionBase error for all exceptions from this Client.
-
exception
qbittorrentapi.exceptions.UnsupportedQbittorrentVersion¶ Bases:
qbittorrentapi.exceptions.APIErrorConnected qBittorrent is not fully supported by this Client.
-
exception
qbittorrentapi.exceptions.FileError¶ Bases:
OSError,qbittorrentapi.exceptions.APIErrorBase class for all exceptions for file handling.
-
exception
qbittorrentapi.exceptions.TorrentFileError¶ Bases:
qbittorrentapi.exceptions.FileErrorBase class for all exceptions for torrent files.
-
exception
qbittorrentapi.exceptions.TorrentFileNotFoundError¶ Bases:
qbittorrentapi.exceptions.TorrentFileErrorSpecified torrent file does not appear to exist.
-
exception
qbittorrentapi.exceptions.TorrentFilePermissionError¶ Bases:
qbittorrentapi.exceptions.TorrentFileErrorPermission was denied to read the specified torrent file.
-
exception
qbittorrentapi.exceptions.APIConnectionError(*args, **kwargs)¶ Bases:
requests.exceptions.RequestException,qbittorrentapi.exceptions.APIErrorBase class for all communications errors including HTTP errors.
-
exception
qbittorrentapi.exceptions.LoginFailed(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.APIConnectionErrorThis can technically be raised with any request since log in may be attempted for any request and could fail.
-
exception
qbittorrentapi.exceptions.HTTPError(*args, **kwargs)¶ Bases:
requests.exceptions.HTTPError,qbittorrentapi.exceptions.APIConnectionErrorBase error for all HTTP errors.
All errors following a successful connection to qBittorrent are returned as HTTP statuses.
-
exception
qbittorrentapi.exceptions.HTTP4XXError(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTPErrorBase error for all HTTP 4XX statuses.
-
exception
qbittorrentapi.exceptions.HTTP5XXError(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTPErrorBase error for all HTTP 5XX statuses.
-
exception
qbittorrentapi.exceptions.HTTP400Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 400 Status.
-
exception
qbittorrentapi.exceptions.HTTP401Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 401 Status.
-
exception
qbittorrentapi.exceptions.HTTP403Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 403 Status.
-
exception
qbittorrentapi.exceptions.HTTP404Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 404 Status.
-
exception
qbittorrentapi.exceptions.HTTP409Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 409 Status.
-
exception
qbittorrentapi.exceptions.HTTP415Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP4XXErrorHTTP 415 Status.
-
exception
qbittorrentapi.exceptions.HTTP500Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP5XXErrorHTTP 500 Status.
-
exception
qbittorrentapi.exceptions.MissingRequiredParameters400Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP400ErrorEndpoint call is missing one or more required parameters.
-
exception
qbittorrentapi.exceptions.InvalidRequest400Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP400ErrorOne or more endpoint arguments are malformed.
Bases:
qbittorrentapi.exceptions.HTTP401ErrorPrimarily reserved for XSS and host header issues.
-
exception
qbittorrentapi.exceptions.Forbidden403Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP403ErrorNot logged in, IP has been banned, or calling an API method that isn’t public.
-
exception
qbittorrentapi.exceptions.NotFound404Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP404ErrorThis should mean qBittorrent couldn’t find a torrent for the torrent hash.
-
exception
qbittorrentapi.exceptions.Conflict409Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP409ErrorReturned if arguments don’t make sense specific to the endpoint.
-
exception
qbittorrentapi.exceptions.UnsupportedMediaType415Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP415Errortorrents/add endpoint will return this for invalid URL(s) or files.
-
exception
qbittorrentapi.exceptions.InternalServerError500Error(*args, **kwargs)¶ Bases:
qbittorrentapi.exceptions.HTTP500ErrorReturned if qBittorent craps on itself while processing the request…