forked from LBRYCommunity/lbry-sdk
192ac6959a
More specific exceptions are raised when problems are encountered looking up metadata and validating stream descriptor files, and on the GUI those more specific exceptions are used to prevent errors from being presented to the user. If the user has selected the option to re-upload data for some stream, blobs downloaded for that purpose will not be deleted when they are finished being output. Instead, by default, for the GUI they will be deleted when the stream is removed from the GUI. That can be changed so they are not deleted at all, using the lbry.conf file.
66 lines
No EOL
1.1 KiB
Python
66 lines
No EOL
1.1 KiB
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
|
|
|
|
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
|
|
|
|
|
|
class InvalidStreamInfoError(Exception):
|
|
def __init__(self, name):
|
|
self.name = name
|
|
|
|
def __str__(self):
|
|
return repr(self.name)
|
|
|
|
|
|
class MisbehavingPeerError(Exception):
|
|
pass
|
|
|
|
|
|
class InvalidDataError(MisbehavingPeerError):
|
|
pass
|
|
|
|
|
|
class NoResponseError(MisbehavingPeerError):
|
|
pass
|
|
|
|
|
|
class InvalidResponseError(MisbehavingPeerError):
|
|
pass |