lbry-sdk/lbrynet/core/Error.py

48 lines
735 B
Python
Raw Normal View History

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
class InvalidStreamInfoError(Exception):
def __init__(self, name):
self.name = name
class MisbehavingPeerError(Exception):
pass
class InvalidDataError(MisbehavingPeerError):
pass
class NoResponseError(MisbehavingPeerError):
pass
class InvalidResponseError(MisbehavingPeerError):
pass