CoapFormatException

class CoapFormatException(message: String, val messageId: Int? = null, val type: CoapMessageType? = null, val silentlyIgnore: Boolean = false) : Exception(source)

A message that could not be parsed (RFC 7252 §4.2 calls this a message format error).

messageId and type are set when the header was readable, so the messaging layer can answer a malformed Confirmable message with a Reset as RFC 7252 §4.2 requires. silentlyIgnore marks input that must be dropped without any answer, such as an unknown protocol version (§3).

Constructors

Link copied to clipboard
constructor(message: String, messageId: Int? = null, type: CoapMessageType? = null, silentlyIgnore: Boolean = false)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard