Exceptions

exception lahja.exceptions.BindError

Bases: lahja.exceptions.LahjaError

Raise when an attempt was made to bind an event that is already bound.

exception lahja.exceptions.ConnectionAttemptRejected

Bases: lahja.exceptions.LahjaError

Raised when an attempt was made to connect to an endpoint that is already connected.

exception lahja.exceptions.LahjaError

Bases: Exception

Base class for all lahja errors

exception lahja.exceptions.LifecycleError

Bases: lahja.exceptions.LahjaError

Raised when attempting to violate the lifecycle of an endpoint such as starting an already started endpoint or starting an endpoint that has already stopped.

exception lahja.exceptions.NoSubscribers

Bases: lahja.exceptions.LahjaError

Raised when attempting to send an event or make a request while there are no listeners for the specific type of event or request. This is a safety check, set require_subscriber of BroadcastConfig to False to allow propagation without listeners.

exception lahja.exceptions.RemoteDisconnected

Bases: lahja.exceptions.LahjaError

Raise when a remote disconnects while we attempting to read a message.

exception lahja.exceptions.UnexpectedResponse

Bases: lahja.exceptions.LahjaError

Raised when the type of a response did not match the expected_response_type.