btdht.exceptions module¶
-
exception
btdht.exceptions.
BucketFull
[source]¶ Bases:
exceptions.Exception
Raised then trying to add a node to a
Bucket
that already containsBucket.max_size
elements.
-
exception
btdht.exceptions.
BucketNotFull
[source]¶ Bases:
exceptions.Exception
Raises then trying to split a split a
Bucket
that contains less thanBucket.max_size
elements.
-
exception
btdht.exceptions.
NoTokenError
[source]¶ Bases:
exceptions.Exception
Raised then trying to annonce to a node we download an info_hash using
Node.announce_peer
but we do not known any valid token. The error should always be catch and never seen by btdht users.
-
exception
btdht.exceptions.
FailToStop
[source]¶ Bases:
exceptions.Exception
Raises then we are tying to stop threads but failing at it
-
exception
btdht.exceptions.
TransactionIdUnknown
[source]¶ Bases:
exceptions.Exception
Raised then receiving a response with an unknown
t
key
-
exception
btdht.exceptions.
MissingT
[source]¶ Bases:
exceptions.ValueError
Raised while decoding of a dht message if that message of no key
t
-
exception
btdht.exceptions.
DecodeError
[source]¶ Bases:
exceptions.ValueError
Raised while decoding a dht message
-
exception
btdht.exceptions.
BcodeError
[source]¶ Bases:
exceptions.Exception
Raised by
btdht.utils.bdecode()
andbtdht.utils.bencode()
functions
-
exception
btdht.exceptions.
NotFound
[source]¶ Bases:
exceptions.Exception
Raised when trying to get a node that do not exists from a
Bucket