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.
the contained Throwable
, if this OptionalThrowable
is defined
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
.
true if this OptionalThrowable
contains a Throwable
Indicates whether this OptionalThrowable
is "empty," i.e., contains no Throwable
.
Indicates whether this OptionalThrowable
is "empty," i.e., contains no Throwable
.
true if this OptionalThrowable
contains no Throwable
An optional
Throwable
.