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
|
|
|
|
|
|
|
|
|
2016-07-26 04:46:04 +02:00
|
|
|
class KeyFeeAboveMaxAllowed(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2015-08-20 17:27:15 +02:00
|
|
|
class UnknownNameError(Exception):
|
|
|
|
def __init__(self, name):
|
2016-10-27 20:28:56 +02:00
|
|
|
Exception.__init__('Name {} is unknown'.format(name))
|
2015-08-20 17:27:15 +02:00
|
|
|
self.name = name
|
|
|
|
|
2015-09-01 23:49:26 +02:00
|
|
|
|
2016-07-29 00:48:29 +02:00
|
|
|
class InvalidNameError(Exception):
|
|
|
|
def __init__(self, name):
|
|
|
|
self.name = name
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return repr(self.name)
|
|
|
|
|
|
|
|
|
2015-09-01 23:49:26 +02: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 17:27:15 +02:00
|
|
|
|
|
|
|
class InvalidStreamInfoError(Exception):
|
2016-10-31 18:53:45 +01:00
|
|
|
def __init__(self, name, stream_info):
|
2016-11-01 21:35:44 +01:00
|
|
|
msg = '{} has claim with invalid stream info: {}'.format(name, stream_info)
|
|
|
|
Exception.__init__(self, msg)
|
2015-08-20 17:27:15 +02:00
|
|
|
self.name = name
|
2016-10-31 18:53:45 +01:00
|
|
|
self.stream_info = stream_info
|
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-09-16 22:27:46 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidBlobHashError(Exception):
|
2016-09-20 22:58:30 +02:00
|
|
|
pass
|
|
|
|
|
2016-09-27 19:52:44 +02:00
|
|
|
|
2016-09-20 22:58:30 +02:00
|
|
|
class InvalidHeaderError(Exception):
|
|
|
|
pass
|
|
|
|
|
2016-10-15 00:25:37 +02:00
|
|
|
|
2016-09-20 22:58:30 +02:00
|
|
|
class InvalidAuthenticationToken(Exception):
|
2016-09-22 03:36:06 +02:00
|
|
|
pass
|
|
|
|
|
2016-10-15 00:25:37 +02:00
|
|
|
|
2016-09-22 03:36:06 +02:00
|
|
|
class SubhandlerError(Exception):
|
2016-10-15 00:25:37 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2016-09-27 19:52:44 +02:00
|
|
|
class NegotiationError(Exception):
|
2016-10-15 00:25:37 +02:00
|
|
|
pass
|