Interface ErrorHandler

All Superinterfaces:
Processor

public interface ErrorHandler extends Processor
Marker interface identifying a Processor as an error-handling wrapper, as described in the Error Handler documentation.

Camel wraps each route's processing pipeline in an ErrorHandler at startup. The handler intercepts exceptions thrown during message processing and applies the configured error-handling strategy, such as retrying with back-off (RedeliveryErrorHandler), sending to a dead letter channel, or simply logging and continuing.

All built-in error handler implementations (NoErrorHandler, DefaultErrorHandler, DeadLetterChannel, TransactionErrorHandler) implement this interface, making it possible for Camel internals to detect whether a Processor is an error handler without needing to know the concrete type.

Since:
3.7
See Also: