lbry-sdk/lbry/dht/error.py

24 lines
407 B
Python
Raw Normal View History

2019-01-22 18:49:43 +01:00
class BaseKademliaException(Exception):
pass
2017-10-10 19:08:22 +02:00
2019-01-22 18:49:43 +01:00
class DecodeError(BaseKademliaException):
2017-10-10 19:08:22 +02:00
"""
Should be raised by an C{Encoding} implementation if decode operation
fails
"""
2019-01-22 18:49:43 +01:00
class BucketFull(BaseKademliaException):
2017-10-10 19:08:22 +02:00
"""
Raised when the bucket is full
"""
2019-01-22 18:49:43 +01:00
class RemoteException(BaseKademliaException):
2017-10-10 19:08:22 +02:00
pass
2019-01-22 18:49:43 +01:00
class TransportNotConnected(BaseKademliaException):
pass