Package-level declarations
Types
Functions
Link copied to clipboard
If the predicate is null, then throw the exception form the body. This should usually be called in a "result" block.
Link copied to clipboard
Type safe way of throwing an exception.
infix inline fun <R, E : Exception, R2, E2 : Exception> Result<R2, E2>.failWith(block: (E2) -> E): R2
Return the value of the success case or fail with the exception returned from the "block" block.
Return the value of the success case or throws the exception from the "onFailure" block. This acts as a bridge to the standard kotlin.Result.
Link copied to clipboard
Link copied to clipboard