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)