Package io.foldright.cffu.eh
Class ExceptionInfo
java.lang.Object
io.foldright.cffu.eh.ExceptionInfo
Exception info of exceptions, used as argument of
ExceptionHandler
.- Author:
- Jerry Lee (oldratlee at gmail dot com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionInfo
(String where, int index, Throwable exception, Object attachment) Constructs anExceptionInfo
with the specified location, index, exception, and attachment. -
Method Summary
-
Field Details
-
where
The location where the exception occurs.The location is provided through the
where
parameter of the handle methods inSwallowedExceptionHandleUtils
. -
index
public final int indexThe 0-based index of the inputCompletionStage
that throws the exception. -
exception
The exception. -
attachment
An optional attachment object that may contain additional context; can benull
.The attachment object is provided through the attachments parameter of the handle methods in
SwallowedExceptionHandleUtils
.- See Also:
-
-
Constructor Details
-
ExceptionInfo
Constructs anExceptionInfo
with the specified location, index, exception, and attachment.
-