Files
bitfinex-api-py/bfxapi/_exceptions.py
2023-10-09 16:27:04 +02:00

15 lines
500 B
Python

class BfxBaseException(Exception):
"""
Base class for every custom exception in bfxapi/rest/exceptions.py and bfxapi/websocket/exceptions.py.
"""
class IncompleteCredentialError(BfxBaseException):
"""
This error indicates an incomplete credential object (missing api-key or api-secret).
"""
class InvalidCredentialError(BfxBaseException):
"""
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
"""