Class TryCatchProcessor
Try-catch error handling processor. Wraps a body processor and catches
exceptions using ordered catch clauses. Optionally runs a finally block.
public class TryCatchProcessor : IProcessor
Inheritance
Implements
Properties
Methods
Catch<TException>(IProcessor)
Adds a typed catch clause.
public TryCatchProcessor Catch<TException>(IProcessor handler) where TException : Exception
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
SetFinally(IProcessor)
Sets the finally processor.
public TryCatchProcessor SetFinally(IProcessor processor)
Constructors
TryCatchProcessor(IProcessor, ILogger?)
Creates a try-catch processor wrapping the specified body.