ProtocolError

sealed interface ProtocolError

Represents all the possible errors that a Protocol can raise.

Inheritors

Types

Link copied to clipboard
data class EntityNotRegistered(val entity: Entity) : ProtocolError

Error raised when the Protocol tries to communicate with an entity that is not registered.

Link copied to clipboard
data class ProtocolException(val exception: Throwable) : ProtocolError

Wrap the exception raised by the Protocol in a ProtocolError.