mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Apply pylint's linting rules to bfxapi/rest/__init__.py, bfxapi/rest/enums.py, bfxapi/rest/exceptions.py, bfxapi/rest/serializers.py and bfxapi/rest/types.py." Apply pylint's linting rules to bfxapi/rest/endpoints/__init__.py, bfxapi/rest/endpoints/bfx_rest_interface.py and bfxapi/rest/endpoints/rest_public_endpoints.py.
36 lines
973 B
Python
36 lines
973 B
Python
from .. exceptions import BfxBaseException
|
|
|
|
__all__ = [
|
|
"BfxRestException",
|
|
|
|
"ResourceNotFound",
|
|
"RequestParametersError",
|
|
"ResourceNotFound",
|
|
"InvalidAuthenticationCredentials"
|
|
]
|
|
|
|
class BfxRestException(BfxBaseException):
|
|
"""
|
|
Base class for all custom exceptions in bfxapi/rest/exceptions.py.
|
|
"""
|
|
|
|
class ResourceNotFound(BfxRestException):
|
|
"""
|
|
This error indicates a failed HTTP request to a non-existent resource.
|
|
"""
|
|
|
|
class RequestParametersError(BfxRestException):
|
|
"""
|
|
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):
|
|
"""
|
|
This error indicates an undefined problem processing an HTTP request sent to the APIs.
|
|
"""
|