Exceptions

Exception classes used throughout Fast Channels.

exception fast_channels.exceptions.InvalidChannelLayerError

Bases: ValueError

Raised when a channel layer is configured incorrectly.

exception fast_channels.exceptions.AcceptConnection

Bases: Exception

Raised during a websocket.connect (or other supported connection) handler to accept the connection.

exception fast_channels.exceptions.DenyConnection

Bases: Exception

Raised during a websocket.connect (or other supported connection) handler to deny the connection.

exception fast_channels.exceptions.StopConsumer

Bases: Exception

Raised when a consumer wants to stop and close down its application instance.