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 aThrowableinto aThrowableDescription.java.util.List<ThrowableDescription>describeInContext(java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)Serializes aThrowableinto aThrowableDescription.
-
-
-
Method Detail
-
describeInContext
java.util.List<ThrowableDescription> describeInContext(java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowableinto 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 sameThrowableobject, for chaining- Returns:
- a list of
ThrowableDescriptions which represent the providedThrowable
-
describeInContext
default java.util.List<ThrowableDescription> describeInContext(@Nullable Entity entity, java.lang.Throwable throwable, java.util.List<Subsegment> subsegments)
Serializes aThrowableinto 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 sameThrowableobject, for chaining- Returns:
- a list of
ThrowableDescriptions which represent the providedThrowable
-
-