Network

data class Network(val cause: Throwable? = null, val message: String = "Network error.") : SolidError

A network I/O failure before a response was obtained; retryable.

Constructors

Link copied to clipboard
constructor(cause: Throwable? = null, message: String = "Network error.")

Properties

Link copied to clipboard
open override val cause: Throwable?

The underlying throwable, when this error wraps one.

Link copied to clipboard
open override val code: SolidErrorCode

Stable classification; safe to branch on and localize.

Link copied to clipboard
open val httpStatus: Int? = null

The HTTP status that produced this error, or null for local/transport errors.

Link copied to clipboard
open override val message: String

Developer-facing diagnostic description. Not an end-user string.

Link copied to clipboard
open override val retryable: Boolean

true when retrying the same request may succeed on its own (transient server/transport conditions). A false value does not mean "never retry" — e.g. PreconditionFailed needs a fresh ETag first (branch on code).

Functions

Link copied to clipboard

Wraps this error in a throwable for getOrThrow-style propagation, preserving cause.