lbry-sdk/lbrynet/core/Error.py
2015-08-20 11:27:15 -04:00

48 lines
No EOL
735 B
Python

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