forked from LBRYCommunity/lbry-sdk
added missing files
This commit is contained in:
parent
57fd3c5801
commit
3194cec8df
4 changed files with 9 additions and 5 deletions
2
lbry/lbry/error/Makefile
Normal file
2
lbry/lbry/error/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
generate:
|
||||||
|
python generate.py > __init__.py
|
|
@ -53,8 +53,8 @@ Code | Name | Message | Comment
|
||||||
**32x** | ChannelSigning | Channel signing.
|
**32x** | ChannelSigning | Channel signing.
|
||||||
320 | ChannelKeyNotFound | Channel signing key not found.
|
320 | ChannelKeyNotFound | Channel signing key not found.
|
||||||
321 | ChannelKeyInvalid | Channel signing key is out of date. | For example, channel was updated but you don't have the updated key.
|
321 | ChannelKeyInvalid | Channel signing key is out of date. | For example, channel was updated but you don't have the updated key.
|
||||||
**33x** | Resolve | Errors while resolving urls.
|
**33x** | GeneralResolve | Errors while resolving urls.
|
||||||
331 | ResolveError | Failed to resolve '{uri}'.
|
331 | Resolve | Failed to resolve '{uri}'.
|
||||||
332 | ResolveTimeout | Failed to resolve '{uri}' within the timeout.
|
332 | ResolveTimeout | Failed to resolve '{uri}' within the timeout.
|
||||||
**4xx** | Blob | **Blobs**
|
**4xx** | Blob | **Blobs**
|
||||||
**40x** | BlobAvailability | Blob availability.
|
**40x** | BlobAvailability | Blob availability.
|
||||||
|
|
|
@ -313,18 +313,18 @@ class ChannelKeyInvalidError(ChannelSigningError):
|
||||||
super().__init__("Channel signing key is out of date.")
|
super().__init__("Channel signing key is out of date.")
|
||||||
|
|
||||||
|
|
||||||
class ResolveError(BlockchainError):
|
class GeneralResolveError(BlockchainError):
|
||||||
"""
|
"""
|
||||||
Errors while resolving urls.
|
Errors while resolving urls.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class ResolveErrorError(ResolveError):
|
class ResolveError(GeneralResolveError):
|
||||||
def __init__(self, uri):
|
def __init__(self, uri):
|
||||||
super().__init__(f"Failed to resolve '{uri}'.")
|
super().__init__(f"Failed to resolve '{uri}'.")
|
||||||
|
|
||||||
|
|
||||||
class ResolveTimeoutError(ResolveError):
|
class ResolveTimeoutError(GeneralResolveError):
|
||||||
def __init__(self, uri):
|
def __init__(self, uri):
|
||||||
super().__init__(f"Failed to resolve '{uri}' within the timeout.")
|
super().__init__(f"Failed to resolve '{uri}' within the timeout.")
|
||||||
|
|
||||||
|
|
2
lbry/lbry/error/base.py
Normal file
2
lbry/lbry/error/base.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
class BaseError(Exception):
|
||||||
|
pass
|
Loading…
Reference in a new issue