failure static method

  1. @JvmName("failure")
Result<Throwable> failure(
  1. Throwable exception
)

Returns an instance that encapsulates the given Throwable as failure.

Implementation

@JvmName("failure")
static Result<Throwable> failure(Throwable exception) => Result(exception);