2015-08-20 11:27:15 -04: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
|
|
|
|
|
|
|
|
|
2016-07-25 22:46:04 -04:00
|
|
|
class KeyFeeAboveMaxAllowed(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2015-08-20 11:27:15 -04:00
|
|
|
class UnknownNameError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
2015-09-01 17:49:26 -04:00
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
|
|
|
|
2016-07-28 18:48:29 -04:00
|
|
|
class InvalidNameError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
|
|
|
|
2015-09-01 17:49:26 -04:00
|
|
|
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 11:27:15 -04:00
|
|
|
|
|
|
|
class InvalidStreamInfoError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
2015-09-01 17:49:26 -04:00
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
2015-08-20 11:27:15 -04:00
|
|
|
|
|
|
|
class MisbehavingPeerError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidDataError(MisbehavingPeerError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoResponseError(MisbehavingPeerError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidResponseError(MisbehavingPeerError):
|
2015-09-04 16:22:02 -04:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchBlobError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchStreamHashError(Exception):
|
2015-09-16 16:27:46 -04:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidBlobHashError(Exception):
|
2015-08-20 11:27:15 -04:00
|
|
|
pass
|