ResultAsFailureX<T> extension
syntactic sugar to easily access the data of a failed Result
- on
-
- Result<
T>
- Result<
Properties
-
failure
→ Failure<
T> -
the user takes responsability on the result being a Failure
no setter
-
failureOrNull
→ Failure<
T> ? -
the user takes responsability on the result being a Success
no setter