Class CatchDefinition

Assembly: redb.Route.dll

A catch branch inside a .
Inherits the leaf DSL from ; child steps
build the catch handler pipeline. Navigate back with ,
open another catch with , open finally with
, or close the entire scope with .

public class CatchDefinition : RouteDefinitionBase<CatchDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope

Inheritance

Implements

Inherited Members

Methods

Catch<TException>()

Opens another catch branch.

public CatchDefinition Catch<TException>() where TException : Exception

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

End()

Closes this scope and returns the parent .

public IRouteDefinition End()

EndCatch()

Closes this catch branch and returns to the parent TryCatch.

public TryCatchDefinition EndCatch()

EndTryCatch()

Closes the entire TryCatch scope.

public IRouteDefinition EndTryCatch()

Finally()

Opens the Finally block.

public FinallyDefinition Finally()

When(Func<Exception, bool>)

Adds an additional guard predicate to this catch clause.

public CatchDefinition When(Func<Exception, bool> predicate)