ThanklyException

Every error this SDK raises.

Sealed so a caller can exhaustively branch on failure, and so adding a case later is a compile error at their call sites rather than a surprise at runtime.

Inheritors

Types

Link copied to clipboard
object Companion

Factories that build the right subtype from a response.

Link copied to clipboard

Generation failed. Not a transport error: the experience returned 200 and reported FAILED, so status is null.

Link copied to clipboard

400 — the request was malformed or violated a field constraint.

Link copied to clipboard

403 — authenticated, but this org may not invoke that capability.

Link copied to clipboard
class NotFound(message: String) : ThanklyException

404 — no such experience, decision, or customer for this org.

Link copied to clipboard

429 — slow down.

Link copied to clipboard
class Server(message: String, val status: Int) : ThanklyException

5xx, and any status this SDK does not model.

Link copied to clipboard

401 — credentials are missing, expired, or rejected.

Link copied to clipboard

409 — an optimistic-concurrency check failed; re-read and retry.

Properties

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

HTTP status, or null for failures that are not transport errors.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard