Interface ExceptionEventData
- All Superinterfaces:
EventData
- All Known Implementing Classes:
AutoValue_ImmutableExceptionEventData, ImmutableExceptionEventData
Data representation of an event for a recorded exception.
- Since:
- 1.44.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionEventDatacreate(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData.Return theexceptionof theExceptionEventData.Methods inherited from interface EventData
getAttributes, getDroppedAttributesCount, getEpochNanos, getName, getTotalAttributeCount
-
Method Details
-
create
static ExceptionEventData create(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData.- Parameters:
epochNanos- epoch timestamp in nanos of theExceptionEventData.exception- theexceptionof theEvent.attributes- the additional attributes of theExceptionEventData.totalAttributeCount- the total number of attributes for this Event.- Returns:
- a new immutable
ExceptionEventData
-
getException
Throwable getException()Return theexceptionof theExceptionEventData.- Returns:
- the
exceptionof theExceptionEventData
-