corda / net.corda.core.utilities / Try / Failure

Failure

data class Failure<out A> : Try<A>

Constructors

<init>

Failure(exception: Throwable)

Properties

exception

val exception: Throwable

isFailure

Returns true iff the Try is a Success.

val isFailure: Boolean

isSuccess

Returns true iff the Try is a Failure.

val isSuccess: Boolean

Functions

getOrThrow

Returns the value if a Success otherwise throws the exception if a Failure.

fun getOrThrow(): A

toString

fun toString(): String