Fix small bug in module bfxapi.exceptions.

This commit is contained in:
Davide Casale
2023-10-09 16:27:04 +02:00
parent 25881e77c8
commit 378e89b504
3 changed files with 25 additions and 60 deletions

View File

@@ -1,35 +1,17 @@
from ..exceptions import BfxBaseException
# pylint: disable-next=wildcard-import,unused-wildcard-import
from bfxapi._exceptions import *
__all__ = [
"BfxRestException",
"ResourceNotFound",
"RequestParametersError",
"ResourceNotFound",
"InvalidAuthenticationCredentials"
]
class BfxRestException(BfxBaseException):
"""
Base class for all custom exceptions in bfxapi/rest/exceptions.py.
"""
class ResourceNotFound(BfxRestException):
class ResourceNotFound(BfxBaseException):
"""
This error indicates a failed HTTP request to a non-existent resource.
"""
class RequestParametersError(BfxRestException):
class RequestParametersError(BfxBaseException):
"""
This error indicates that there are some invalid parameters sent along with an HTTP request.
"""
class InvalidAuthenticationCredentials(BfxRestException):
"""
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
"""
class UnknownGenericError(BfxRestException):
class UnknownGenericError(BfxBaseException):
"""
This error indicates an undefined problem processing an HTTP request sent to the APIs.
"""