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: ResponseError

Failed to add torrent

exception aiobtclientapi.errors.AuthenticationError[source]

Bases: ConnectionError

Wrong login credentials

exception aiobtclientapi.errors.ConnectionError[source]

Bases: Error, ConnectionError

Unable to connect to client

exception aiobtclientapi.errors.Error[source]

Bases: Exception

Parent class of all fatal exceptions

exception aiobtclientapi.errors.InvalidTorrentError(cause, *args, **kwargs)[source]

Bases: ResponseError

Bad torrent file or magnet URI

exception aiobtclientapi.errors.NoSuchTorrentError(cause, *args, **kwargs)[source]

Bases: ResponseError

Torrent identifier doesn’t point to a known torrent

exception aiobtclientapi.errors.NotImplementedError[source]

Bases: Error, NotImplementedError

Unimplemented or unsupported functionality

exception aiobtclientapi.errors.ReadError[source]

Bases: Error

Failed reading operation

exception aiobtclientapi.errors.ResponseError(cause, *args, **kwargs)[source]

Bases: Error

Generic error from a client API request, e.g. torrent does’t exist

exception aiobtclientapi.errors.StartTorrentError(cause, *args, **kwargs)[source]

Bases: ResponseError

Failed to start torrent

exception aiobtclientapi.errors.StopTorrentError(cause, *args, **kwargs)[source]

Bases: ResponseError

Failed to stop torrent

exception aiobtclientapi.errors.TimeoutError[source]

Bases: ConnectionError, TimeoutError

Something took too long and was cancelled

exception aiobtclientapi.errors.TorrentAlreadyAdded(infohash, name=None)[source]

Bases: TorrentWarning

Torrent was already added

exception aiobtclientapi.errors.TorrentAlreadyStarted(infohash, name=None)[source]

Bases: TorrentWarning

Torrent is already started

exception aiobtclientapi.errors.TorrentAlreadyStopped(infohash, name=None)[source]

Bases: TorrentWarning

Torrent is already stopped

exception aiobtclientapi.errors.TorrentAlreadyVerifying(infohash, name=None)[source]

Bases: TorrentWarning

Torrent is already being verified

exception aiobtclientapi.errors.TorrentWarning(infohash, name=None)[source]

Bases: Warning

Warning about 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, ValueError

Invalid value

exception aiobtclientapi.errors.VerifyTorrentError(cause, *args, **kwargs)[source]

Bases: ResponseError

Failed to verify torrent

exception aiobtclientapi.errors.Warning[source]

Bases: Exception

Generic warning about an acceptable, non-serious issue (e.g. adding duplicate torrent)

exception aiobtclientapi.errors.WriteError[source]

Bases: Error

Failed writing operation