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):
|
2018-05-23 23:41:56 +02:00
|
|
|
pass
|