Errors¶
natsio.errors ¶
Public exception hierarchy.
Every exception raised by natsio derives from NATSError. Where it
helps except ergonomics, subtrees additionally mix in the matching
builtin (e.g. TimeoutError is also a builtins.TimeoutError).
AuthenticationExpiredError ¶
AuthorizationViolationError ¶
BadHeadersError ¶
ConfigError ¶
ConnectionClosedError ¶
DrainTimeoutError ¶
MaxControlLineExceededError ¶
MaxPayloadExceededError ¶
MaxSubscriptionsExceededError ¶
MissingDependencyError ¶
NATSError ¶
Bases: Exception
Root of the natsio exception hierarchy.
NoReplySubjectError ¶
NoRespondersError ¶
NoServersAvailableError ¶
ParserError ¶
Bases: ProtocolError
Fatal framing/parsing failure.
A byte stream cannot be resynchronized mid-frame: after this is raised the parser refuses further use and the connection must be torn down.
PermissionsViolationError ¶
ProtocolError ¶
ReconnectBufExceededError ¶
Bases: NATSError
A publish issued while disconnected exceeded reconnect_buf_size.
Non-fatal: the connection stays alive and reconnect continues; only this
publish is rejected. Raised immediately for every disconnected publish when
buffering is disabled (reconnect_buf_size=-1).
ServerError ¶
SlowConsumerError ¶
StaleConnectionError ¶
SubscriptionClosedError ¶
TimeoutError ¶
WebsocketError ¶
Bases: ProtocolError
A WebSocket (RFC 6455) handshake or framing violation.
Fatal like a framing error: a WebSocket stream cannot be resynchronized mid-frame, so the transport must be torn down.