CatchBlock.IsTopLevel
IsOutermostCatchBlock
does not exists. Use CatchBlock.IsTopLevel
instead:
public virtual bool ShouldHandle(ExceptionHandlerContext context)
{
return context.ExceptionContext.CatchBlock.IsTopLevel;
}
Source on NuDoq: ExceptionHandlerContext and ExceptionContextCatchBlock