btdht.exceptions module¶
-
exception
btdht.exceptions.BucketFull[source]¶ Bases:
exceptions.ExceptionRaised then trying to add a node to a
Bucketthat already containsBucket.max_sizeelements.
-
exception
btdht.exceptions.BucketNotFull[source]¶ Bases:
exceptions.ExceptionRaises then trying to split a split a
Bucketthat contains less thanBucket.max_sizeelements.
-
exception
btdht.exceptions.NoTokenError[source]¶ Bases:
exceptions.ExceptionRaised then trying to annonce to a node we download an info_hash using
Node.announce_peerbut 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.ExceptionRaises then we are tying to stop threads but failing at it
-
exception
btdht.exceptions.TransactionIdUnknown[source]¶ Bases:
exceptions.ExceptionRaised then receiving a response with an unknown
tkey
-
exception
btdht.exceptions.MissingT[source]¶ Bases:
exceptions.ValueErrorRaised while decoding of a dht message if that message of no key
t
-
exception
btdht.exceptions.DecodeError[source]¶ Bases:
exceptions.ValueErrorRaised while decoding a dht message
-
exception
btdht.exceptions.BcodeError[source]¶ Bases:
exceptions.ExceptionRaised by
btdht.utils.bdecode()andbtdht.utils.bencode()functions