Skip to content

blackbull.client.exceptions

blackbull.client.exceptions

Client errors; timeouts use the built-in TimeoutError.

ClientError

Bases: Exception

Base for protocol client errors; built-in TimeoutError is separate.

ConnectionError

Bases: ClientError

The connection is closed or unusable.

HandshakeError

Bases: ClientError

A WebSocket or HTTP/2 handshake failed.

ProtocolError

Bases: ClientError

A request or peer response violates the protocol.

ResponseTooLarge

Bases: ClientError

A response head or body exceeds a configured client budget.

This is a local limit, distinct from a protocol violation. Raise the budget only if the caller can safely accept more data.

StreamReset

Bases: ClientError

The HTTP/2 stream was reset by the peer (RST_STREAM).