EdhocTransferException

class EdhocTransferException(message: String, val response: CoapResponse? = null) : EdhocException(source)

An EDHOC handshake over CoAP failed in the transfer, not in EDHOC itself: the server answered a request to its EDHOC resource with something that is neither a 2.04 nor an EDHOC error response (RFC 9528 Appendix A.2), such as a 4.04 from a server without one, or the peers could not agree on a cipher suite within a few rounds of RFC 9528 §6.3.

It is an EdhocException, so one catch covers every way EdhocClientHandshake fails for the peer's part. As for dev.kcoap.edhoc.EdhocPeerErrorException, there is nothing to answer: errorMessage is null.

Constructors

Link copied to clipboard
constructor(message: String, response: CoapResponse? = null)

Properties

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

the response that was not EDHOC, or null when the failure was not about one response.