aiobtclientapi.errors
Exceptions
Error
├── ValueError
├── ReadError
├── WriteError
├── NotImplementedError
├── ConnectionError
│ ├── TimeoutError
│ └── AuthenticationError
└── ResponseError
├── NoSuchTorrentError
├── InvalidTorrentError
├── AddTorrentError
├── StartTorrentError
├── StopTorrentError
└── VerifyTorrentError
Warning
└── TorrentWarning
├── TorrentAlreadyAdded
├── TorrentAlreadyStarted
├── TorrentAlreadyStopped
└── TorrentAlreadyVerifying
Exceptions
- exception aiobtclientapi.errors.AddTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorFailed to add torrent
- exception aiobtclientapi.errors.AuthenticationError[source]
Bases:
ConnectionErrorWrong login credentials
- exception aiobtclientapi.errors.ConnectionError[source]
Bases:
Error,ConnectionErrorUnable to connect to client
- exception aiobtclientapi.errors.Error[source]
Bases:
ExceptionParent class of all fatal exceptions
- exception aiobtclientapi.errors.InvalidTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorBad torrent file or magnet URI
- exception aiobtclientapi.errors.NoSuchTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorTorrent identifier doesn’t point to a known torrent
- exception aiobtclientapi.errors.NotImplementedError[source]
Bases:
Error,NotImplementedErrorUnimplemented or unsupported functionality
- exception aiobtclientapi.errors.ResponseError(cause, *args, **kwargs)[source]
Bases:
ErrorGeneric error from a client API request, e.g. torrent does’t exist
- exception aiobtclientapi.errors.StartTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorFailed to start torrent
- exception aiobtclientapi.errors.StopTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorFailed to stop torrent
- exception aiobtclientapi.errors.TimeoutError[source]
Bases:
ConnectionError,TimeoutErrorSomething took too long and was cancelled
- exception aiobtclientapi.errors.TorrentAlreadyAdded(infohash, name=None)[source]
Bases:
TorrentWarningTorrent was already added
- exception aiobtclientapi.errors.TorrentAlreadyStarted(infohash, name=None)[source]
Bases:
TorrentWarningTorrent is already started
- exception aiobtclientapi.errors.TorrentAlreadyStopped(infohash, name=None)[source]
Bases:
TorrentWarningTorrent is already stopped
- exception aiobtclientapi.errors.TorrentAlreadyVerifying(infohash, name=None)[source]
Bases:
TorrentWarningTorrent is already being verified
- exception aiobtclientapi.errors.TorrentWarning(infohash, name=None)[source]
Bases:
WarningWarningabout a torrent that provides the infohash and an optional name- Parameters:
infohash – Infohash of the torrent
name – Torrent name or user-provided torrent file, magnet URI, etc
infohash should be a machine-readable ID while name should be a user-readable ID or an argument from user.
- exception aiobtclientapi.errors.ValueError[source]
Bases:
Error,ValueErrorInvalid value
- exception aiobtclientapi.errors.VerifyTorrentError(cause, *args, **kwargs)[source]
Bases:
ResponseErrorFailed to verify torrent