Interface BacklogErrorEventMessage
- All Superinterfaces:
BacklogEventMessage
Represents an error event captured by the
ErrorRegistry.
This extends BacklogEventMessage with error-specific information such as the exception, whether the error was
handled by an error handler, the route group, and the message history trace.- Since:
- 4.21
-
Method Summary
Modifier and TypeMethodDescriptionlongThe elapsed processing time of the exchange (in milliseconds) from creation until the error was captured.The actual exception that caused the error.@Nullable StringThe exception's detail message fromThrowable.getMessage(), ornullif the exception has no message.The fully qualified class name of the exception (e.g.@Nullable StringThe URI of the route's consumer (from) endpoint where the exchange originated.String @Nullable []The message history trace captured at the time of the error, ornullif message history is not enabled on the CamelContext.@Nullable StringThe route group of the route where the error occurred, ornullif the route has no group assigned.longThe uptime of the route (in milliseconds) at the time the error was captured.@Nullable StringThe id of the Step EIP the exchange was inside when the error occurred, ornullif the exchange was not inside a Step EIP.booleanWhether the error was handled by an error handler (e.g. dead letter channel, onException) so the exchange completed without propagating the exception to the caller.Methods inherited from interface BacklogEventMessage
asJSon, getEndpointUri, getExceptionAsJSon, getExchangeId, getFromRouteId, getLocation, getMessageAsJSon, getProcessingThreadName, getRouteId, getTimestamp, getToNode, getUid, hasException, toJSon
-
Method Details
-
getRouteGroup
@Nullable String getRouteGroup()The route group of the route where the error occurred, ornullif the route has no group assigned. -
getStepId
@Nullable String getStepId()The id of the Step EIP the exchange was inside when the error occurred, ornullif the exchange was not inside a Step EIP.- Since:
- 4.21
-
getFromEndpointUri
@Nullable String getFromEndpointUri()The URI of the route's consumer (from) endpoint where the exchange originated.- Since:
- 4.21
-
getRouteUptime
long getRouteUptime()The uptime of the route (in milliseconds) at the time the error was captured.- Since:
- 4.21
-
getElapsed
long getElapsed()The elapsed processing time of the exchange (in milliseconds) from creation until the error was captured.- Since:
- 4.21
-
getException
-
isHandled
boolean isHandled()Whether the error was handled by an error handler (e.g. dead letter channel, onException) so the exchange completed without propagating the exception to the caller.falsemeans the exception was not handled and the exchange failed. -
getExceptionType
String getExceptionType()The fully qualified class name of the exception (e.g. "java.lang.IllegalArgumentException"). -
getExceptionMessage
@Nullable String getExceptionMessage()The exception's detail message fromThrowable.getMessage(), ornullif the exception has no message. -
getMessageHistory
String @Nullable [] getMessageHistory()The message history trace captured at the time of the error, ornullif message history is not enabled on the CamelContext. Each element represents one step in the routing history in the format "routeId[nodeId] (elapsed ms)".
-