MessageRejected

class MessageRejected(val peer: Endpoint, val messageId: Int, val reason: EndpointEvent.MessageRejected.Reason, val detail: String? = null) : EndpointEvent(source)

A well-formed message from peer was rejected with a Reset, dropped or ignored, because it broke a rule of the messaging layer or this endpoint lacked the context to process it; or a datagram was dropped unparsed because no answer could reach its source (Reason.INVALID_SOURCE). On reliable transports, which have no Message IDs, messageId is 0. reason is a bounded set fit for counting; detail, when there is one, adds what a log needs, such as the numbers of unrecognized options.

Constructors

Link copied to clipboard
constructor(peer: Endpoint, messageId: Int, reason: EndpointEvent.MessageRejected.Reason, detail: String? = null)

Types

Link copied to clipboard

Why a message was rejected. New reasons may be added before 1.0; use an else branch.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val peer: Endpoint

The peer the event concerns.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String