ThrowableGetter

fun interface ThrowableGetter<T>

Functional interface for operations that may throw exceptions.

Useful for wrapping code that might fail into a callable interface, often used with getOrDefault for safe execution with fallback values.

Type Parameters

T

The type of value returned by the getter.

Functions

Link copied to clipboard
abstract fun get(): T