KoryHttpException

Sealed exception hierarchy for Kory HTTP client errors.

  • HttpStatus — Non-2xx HTTP response.

  • Network — Network-level failure (connection refused, DNS, etc.).

  • Timeout — Request timed out.

  • Decoding — Response decoding failure.

Inheritors

Types

Link copied to clipboard
class Decoding(message: String, cause: Throwable? = null) : KoryHttpException

Response decoding failure.

Link copied to clipboard
class HttpStatus(val status: Int, val body: ByteArray, val url: String) : KoryHttpException, JsonDecodable

Non-2xx HTTP response.

Link copied to clipboard
class Network(message: String, cause: Throwable? = null) : KoryHttpException

Network-level failure.

Link copied to clipboard
class Timeout(message: String, cause: Throwable? = null) : KoryHttpException

Request timed out.

Properties

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