Serialization

data class Serialization(val cause: Throwable, val body: String?) : KarboneError

A response body that could not be parsed.

Constructors

Link copied to clipboard
constructor(cause: Throwable, body: String?)

Properties

Link copied to clipboard
val body: String?

Raw response body, if it could be read, for diagnostics.

Link copied to clipboard

The underlying parsing exception, kept as KarboneException's cause.

Functions

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

Human-readable summary of this error, used as the message of KarboneException.