OptionalThrowable
An optional Throwable.
Value members
Constructors
Concrete methods
Returns the Throwable contained in this
OptionalThrowable if defined, else throws
IllegalStateException.
Returns the Throwable contained in this
OptionalThrowable if defined, else throws
IllegalStateException.
To avoid the IllegalStateException, ensure
isDefined returns true before calling this
method.
- Returns:
the contained
Throwable, if thisOptionalThrowableis defined- Throws:
- java.lang.IllegalStateException
if this
OptionalThrowableis not defined.
Indicates whether this OptionalThrowable is "defined,"
i.e., contains a Throwable.
Indicates whether this OptionalThrowable is "defined,"
i.e., contains a Throwable.
- Returns:
true if this
OptionalThrowablecontains aThrowable