public interface WrappableException<T extends RuntimeException>
message
and cause
defined by Throwable
.AbstractInvocationFuture
Modifier and Type | Method and Description |
---|---|
T |
wrap()
Returns a new exception of the same type as
this exception, using
this exception as its cause. |
T wrap()
this
exception, using
this
exception as its cause. This is useful when this
is
a remote or async exception, because it's stack trace is disconnected from the
client code that handles the exception. The returned exception includes
all the state of this
exception, while providing the local stack trace
and the remote/async stack trace in its cause
.WrappableException
with this
as its cause
.Copyright © 2019 Hazelcast, Inc.. All rights reserved.