McuMgrCoapException

A McuMgrException caused by a CoAP response error. For CoAP transport scheme McuMgr requests which result in a CoAP response error, this exception will be thrown (for synchronous requests) or the onError will be called with this exception (for asynchronous requests). This exception holds all the necessary information to determine the error code and reconstruct the CoAP response.

Constructors

Link copied to clipboard
constructor(bytes: Array<Byte>, codeClass: Int, codeDetail: Int)

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
Link copied to clipboard
open fun getBytes(): Array<Byte>
Get the raw bytes of the response which caused this exception.
Link copied to clipboard
open fun getCause(): Throwable
Link copied to clipboard
open fun getCodeClass(): Int
Get the response's code class.
Link copied to clipboard
open fun getCodeDetail(): Int
Get the response's code detail.
Link copied to clipboard
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun setStackTrace(stackTrace: Array<StackTraceElement>)
Link copied to clipboard
open fun toString(): String
@NotNull
open fun toString(): @NotNull String