added missing files

This commit is contained in:
Lex Berezhny 2019-11-19 14:13:15 -05:00
parent 57fd3c5801
commit 3194cec8df
4 changed files with 9 additions and 5 deletions

2
lbry/lbry/error/Makefile Normal file
View file

@ -0,0 +1,2 @@
generate:
python generate.py > __init__.py

View file

@ -53,8 +53,8 @@ Code | Name | Message | Comment
**32x** | ChannelSigning | Channel signing.
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.
**33x** | Resolve | Errors while resolving urls.
331 | ResolveError | Failed to resolve '{uri}'.
**33x** | GeneralResolve | Errors while resolving urls.
331 | Resolve | Failed to resolve '{uri}'.
332 | ResolveTimeout | Failed to resolve '{uri}' within the timeout.
**4xx** | Blob | **Blobs**
**40x** | BlobAvailability | Blob availability.

View file

@ -313,18 +313,18 @@ class ChannelKeyInvalidError(ChannelSigningError):
super().__init__("Channel signing key is out of date.")
class ResolveError(BlockchainError):
class GeneralResolveError(BlockchainError):
"""
Errors while resolving urls.
"""
class ResolveErrorError(ResolveError):
class ResolveError(GeneralResolveError):
def __init__(self, uri):
super().__init__(f"Failed to resolve '{uri}'.")
class ResolveTimeoutError(ResolveError):
class ResolveTimeoutError(GeneralResolveError):
def __init__(self, uri):
super().__init__(f"Failed to resolve '{uri}' within the timeout.")

2
lbry/lbry/error/base.py Normal file
View file

@ -0,0 +1,2 @@
class BaseError(Exception):
pass