mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Rename BfxWebsocketClient, BfxWebsocketBucket and BfxWebsocketInputs to BfxWebSocketClient, BfxWebSocketBucket and BfxWebSocketInputs.
This commit is contained in:
@@ -1,66 +1,66 @@
|
||||
from .. exceptions import BfxBaseException
|
||||
|
||||
__all__ = [
|
||||
"BfxWebsocketException",
|
||||
"BfxWebSocketException",
|
||||
|
||||
"ConnectionNotOpen",
|
||||
"TooManySubscriptions",
|
||||
"ZeroConnectionsError",
|
||||
"ReconnectionTimeoutError",
|
||||
"WebsocketAuthenticationRequired",
|
||||
"WebSocketAuthenticationRequired",
|
||||
"InvalidAuthenticationCredentials",
|
||||
"EventNotSupported",
|
||||
"HandlerNotFound",
|
||||
"OutdatedClientVersion"
|
||||
]
|
||||
|
||||
class BfxWebsocketException(BfxBaseException):
|
||||
class BfxWebSocketException(BfxBaseException):
|
||||
"""
|
||||
Base class for all custom exceptions in bfxapi/websocket/exceptions.py.
|
||||
"""
|
||||
|
||||
class ConnectionNotOpen(BfxWebsocketException):
|
||||
class ConnectionNotOpen(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates an attempt to communicate via websocket before starting the connection with the servers.
|
||||
"""
|
||||
|
||||
class TooManySubscriptions(BfxWebsocketException):
|
||||
class TooManySubscriptions(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates a subscription attempt after reaching the limit of simultaneous connections.
|
||||
"""
|
||||
|
||||
class ZeroConnectionsError(BfxWebsocketException):
|
||||
class ZeroConnectionsError(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates an attempt to subscribe to a public channel while the number of connections is 0.
|
||||
"""
|
||||
|
||||
class ReconnectionTimeoutError(BfxWebsocketException):
|
||||
class ReconnectionTimeoutError(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates that the connection has been offline for too long without being able to reconnect.
|
||||
"""
|
||||
|
||||
class WebsocketAuthenticationRequired(BfxWebsocketException):
|
||||
class WebSocketAuthenticationRequired(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates an attempt to access a protected resource without logging in first.
|
||||
"""
|
||||
|
||||
class InvalidAuthenticationCredentials(BfxWebsocketException):
|
||||
class InvalidAuthenticationCredentials(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
|
||||
"""
|
||||
|
||||
class EventNotSupported(BfxWebsocketException):
|
||||
class EventNotSupported(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates a failed attempt to subscribe to an event not supported by the BfxWebsocketClient.
|
||||
This error indicates a failed attempt to subscribe to an event not supported by the BfxWebSocketClient.
|
||||
"""
|
||||
|
||||
|
||||
class HandlerNotFound(BfxWebsocketException):
|
||||
class HandlerNotFound(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates that a handler was not found for an incoming message.
|
||||
"""
|
||||
|
||||
class OutdatedClientVersion(BfxWebsocketException):
|
||||
class OutdatedClientVersion(BfxWebSocketException):
|
||||
"""
|
||||
This error indicates a mismatch between the client version and the server WSS version.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user