Class DeadLetterErrorHandler
The context's dead letter channel — Apache Camel's errorHandler(deadLetterChannel("direct:errors")) at the
CamelContext level: set as , it takes every failure of every route that no
OnException took, stamps it with the CamelDeadLetter* headers and sends it to the dead letter endpoint
(usually a route of its own, direct:errors). A delivered exchange is handled — the failure does not go on to
the caller, as with Camel's dead letter channel. A failed delivery is logged and the failure goes on.
Redeliveries are the business of OnException (MaximumRedeliveries, RetryWhile): an error
handler receives a failure after the step that threw has returned and has nothing to run again.
public sealed class DeadLetterErrorHandler : IErrorHandler
Inheritance
Implements
Properties
Methods
HandleError(IExchange, Exception, CancellationToken)
Handles an exception that was not caught by any registered exception handler.
public Task HandleError(IExchange exchange, Exception exception, CancellationToken ct = default)
Constructors
DeadLetterErrorHandler(IRouteContext, string, ILogger?)
Creates the dead letter channel of context.