Ejemplo n.º 1
0
        private static bool ExceptionFilter(object exception, GrayException.IsGrayExceptionDelegate isGrayExceptionDelegate, Action <Exception> reportWatsonDelegate)
        {
            Exception ex = exception as Exception;

            if (ex == null)
            {
                return(false);
            }
            if (!GrayException.ShouldMapException(ex, isGrayExceptionDelegate))
            {
                return(false);
            }
            if (reportWatsonDelegate != null)
            {
                reportWatsonDelegate(ex);
            }
            return(true);
        }
Ejemplo n.º 2
0
 private static bool ShouldMapException(Exception e, GrayException.IsGrayExceptionDelegate del)
 {
     return(!GrayException.CrashOnBug() && del(e));
 }
Ejemplo n.º 3
0
 public static void MapAndReportGrayExceptions(GrayException.UserCodeDelegate tryCode, GrayException.IsGrayExceptionDelegate isGrayExceptionDelegate)
 {
     GrayException.< > c__DisplayClass9 CS$ < > 8__locals1 = new GrayException.< > c__DisplayClass9();
     CS$ < > 8__locals1.tryCode = tryCode;
     CS$ < > 8__locals1.isGrayExceptionDelegate = isGrayExceptionDelegate;
     ILUtil.DoTryFilterCatch(new TryDelegate(CS$ < > 8__locals1, (UIntPtr)ldftn(< MapAndReportGrayExceptions > b__7)), new FilterDelegate(CS$ < > 8__locals1, (UIntPtr)ldftn(< MapAndReportGrayExceptions > b__8)), new CatchDelegate(null, (UIntPtr)ldftn(ExceptionCatcher)));
 }