Api

sealed interface Api : KarboneError

Errors reported by the Carbone API. message is the raw error text from the response, never rewritten.

Inheritors

Properties

Link copied to clipboard
abstract val code: String?

Carbone error code when provided, e.g. w117.

Link copied to clipboard
abstract val message: String?

Raw error text from the Carbone response, if any, never rewritten.

Link copied to clipboard
abstract val status: Int

HTTP status returned by Carbone.

Functions

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

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