Castle.MonoRail.Framework.Extensions.ExceptionChaining.FilteredExceptionHandler.Process C# (CSharp) Method

Process() public method

Implementors should perform the action on the exception. Note that the exception is available in IRailsEngineContext.LastException
public Process ( IRailsEngineContext context ) : void
context IRailsEngineContext
return void
        public override void Process(IRailsEngineContext context)
        {
            Exception ex = context.LastException is TargetInvocationException
                               ? context.LastException.InnerException
                               : context.LastException;
            if (!excludedTypes.Contains(ex.GetType()))
            {
                InvokeNext(context);
            }
        }
    }
FilteredExceptionHandler