Class CatchDefinition
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)
EndCatch()
Closes this catch branch and returns to the parent TryCatch.
public TryCatchDefinition EndCatch()
When(Func<Exception, bool>)
Adds an additional guard predicate to this catch clause.
public CatchDefinition When(Func<Exception, bool> predicate)