SolidResult
The result of every library operation: either a Success carrying the value, or a Failure carrying a typed SolidError.
This is the one result shape across the whole library, replacing the former mix of per-feature result types, thrown exceptions, nullable returns, and Success(empty)-on-failure. Because failure is a typed SolidError — not a status int or a prose string — callers branch on SolidError.code and never string-parse an error.
Prefer the combinators (map, flatMap, fold, recover) and the accessors (getOrNull, errorOrNull, getOrThrow) over a manual when.
Inheritors
Properties
Functions
The error, or null on success.
Chains an operation that itself returns a SolidResult, propagating a failure unchanged.
The success value, or default on failure.
The success value, or throws SolidResultException carrying the error (and its cause).
Runs action on the error and returns this result unchanged.
Recovers a failure to a success value; a success passes through unchanged.