2015-08-20 17:27:15 +02:00
|
|
|
class PriceDisagreementError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class DuplicateStreamHashError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class DownloadCanceledError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class RequestCanceledError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InsufficientFundsError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ConnectionClosedBeforeResponseError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UnknownNameError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
2015-09-01 23:49:26 +02:00
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
|
|
|
|
|
|
|
class UnknownStreamTypeError(Exception):
|
|
|
|
def __init__(self, stream_type):
|
|
|
|
self.stream_type = stream_type
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return repr(self.stream_type)
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidStreamDescriptorError(Exception):
|
|
|
|
pass
|
|
|
|
|
2015-08-20 17:27:15 +02:00
|
|
|
|
|
|
|
class InvalidStreamInfoError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
2015-09-01 23:49:26 +02:00
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
2015-08-20 17:27:15 +02:00
|
|
|
|
|
|
|
class MisbehavingPeerError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidDataError(MisbehavingPeerError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoResponseError(MisbehavingPeerError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidResponseError(MisbehavingPeerError):
|
2015-09-04 22:22:02 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchBlobError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchStreamHashError(Exception):
|
2015-08-20 17:27:15 +02:00
|
|
|
pass
|