failure

@JvmName(name = "failure")
fun <T> failure(exception: Throwable): Result<T>

Returns the Result instance which presents an unsuccessful result with the exception value.