Package-level declarations

Types

Link copied to clipboard
sealed class SolidError

The single failure type for every operation in the library.

Link copied to clipboard

Machine-readable classification of a SolidError.

Link copied to clipboard
sealed class SolidResult<out T>

The result of every library operation: either a Success carrying the value, or a Failure carrying a typed SolidError.

Link copied to clipboard

Throwable wrapper for a SolidError, used to propagate a failure through getOrThrow.

Functions

Link copied to clipboard
inline fun <T> solidCatching(block: () -> T): SolidResult<T>

Runs block, returning its value as SolidResult.Success or mapping a thrown exception to SolidResult.Failure via SolidError.fromThrowable. A kotlinx.coroutines.CancellationException (recognized by class name so this has no coroutines dependency) is rethrown so cancellation is never swallowed.