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 thisOptionalThrowable
is defined- Throws:
- java.lang.IllegalStateException
if this
OptionalThrowable
is 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
OptionalThrowable
contains aThrowable