Package org.apache.camel.spi
Interface ErrorRegistryEntry
public interface ErrorRegistryEntry
A snapshot of an error that occurred during message routing.
This is an immutable value object that does not hold references to the original exchange or exception.
-
Method Summary
Modifier and TypeMethodDescriptionThe endpoint URI where the error occurred (if available)The exception messageThe fully qualified class name of the exceptionThe exchange idbooleanhandled()Whether the error was handled by an error handler or onExceptionString[]The message history trace, ornullif message history is not enabled.routeId()The route id where the error occurredString[]The stack trace lines, ornullif stack trace capture is disabled.The timestamp when the error occurred
-
Method Details
-
exchangeId
String exchangeId()The exchange id -
routeId
String routeId()The route id where the error occurred -
endpointUri
String endpointUri()The endpoint URI where the error occurred (if available) -
timestamp
Instant timestamp()The timestamp when the error occurred -
handled
boolean handled()Whether the error was handled by an error handler or onException -
exceptionType
String exceptionType()The fully qualified class name of the exception -
exceptionMessage
String exceptionMessage()The exception message -
stackTrace
String[] stackTrace()The stack trace lines, ornullif stack trace capture is disabled. Each element represents one line of the stack trace. -
messageHistory
String[] messageHistory()The message history trace, ornullif message history is not enabled. Each element represents one step in the routing history (e.g. "routeId[nodeId]").
-