public override void Process(IRailsEngineContext context)
{
Exception ex = context.LastException is TargetInvocationException
? context.LastException.InnerException
: context.LastException;
if (!excludedTypes.Contains(ex.GetType()))
{
InvokeNext(context);
}
}
}