failure

fun <FailureType> failure(failure: FailureType): Result.Failure<FailureType>

Creates a Result.Failure from the given failure.

Parameters

failure

The failure that will be wrapped with Result.