Package com.amazonaws.xray.strategy
Interface ThrowableSerializationStrategy
-
- All Known Implementing Classes:
DefaultThrowableSerializationStrategy
public interface ThrowableSerializationStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<ThrowableDescription>
describeInContext(@Nullable Entity entity, java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowable
into aThrowableDescription
.java.util.List<ThrowableDescription>
describeInContext(java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowable
into aThrowableDescription
.
-
-
-
Method Detail
-
describeInContext
java.util.List<ThrowableDescription> describeInContext(java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowable
into aThrowableDescription
. Uses the provided subsegments to chain exceptions where possible.- Parameters:
throwable
- the Throwable to serializesubsegments
- the list of subsegment children in which to look for the sameThrowable
object, for chaining- Returns:
- a list of
ThrowableDescription
s which represent the providedThrowable
-
describeInContext
default java.util.List<ThrowableDescription> describeInContext(@Nullable Entity entity, java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowable
into aThrowableDescription
. Uses the provided subsegments to chain exceptions where possible.- Parameters:
entity
- the current entity. May be null.throwable
- the Throwable to serializesubsegments
- the list of subsegment children in which to look for the sameThrowable
object, for chaining- Returns:
- a list of
ThrowableDescription
s which represent the providedThrowable
-
-