kilter.protocol.exceptions module

Exceptions raised by the package

exception InsufficientSpace[source]

Bases: Exception

Raised to indicate that a complete message could not be written to a buffer

exception NeedsMore[source]

Bases: Exception

Raised to indicate that a complete message could not be extracted from a buffer

exception UnexpectedMessage[source]

Bases: TypeError

Raised by a protocol to indicate a message that is not expected in the current state

exception InvalidMessage[source]

Bases: kilter.protocol.exceptions.UnexpectedMessage

Raised by a protocol to indicate a message that is unknown to the state machine

exception UnknownMessage[source]

Bases: ValueError

Raised by the message unpacker to indicate that it lacks a class for the message

The first (and only) argument to the exception is the message that could not be unpacked.

property contents: bytes

The byte string that could not be unpacked