2019-01-22 12:49:43 -05:00
|
|
|
class BaseKademliaException(Exception):
|
|
|
|
pass
|
2017-10-10 13:08:22 -04:00
|
|
|
|
|
|
|
|
2019-01-22 12:49:43 -05:00
|
|
|
class DecodeError(BaseKademliaException):
|
2017-10-10 13:08:22 -04:00
|
|
|
"""
|
|
|
|
Should be raised by an C{Encoding} implementation if decode operation
|
|
|
|
fails
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2019-01-22 12:49:43 -05:00
|
|
|
class BucketFull(BaseKademliaException):
|
2017-10-10 13:08:22 -04:00
|
|
|
"""
|
|
|
|
Raised when the bucket is full
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2019-01-22 12:49:43 -05:00
|
|
|
class RemoteException(BaseKademliaException):
|
2017-10-10 13:08:22 -04:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-01-22 12:49:43 -05:00
|
|
|
class TransportNotConnected(BaseKademliaException):
|
2018-05-23 17:41:56 -04:00
|
|
|
pass
|