Example #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);
        }
Example #2
0
 public static bool IsSystemGrayException(Exception e)
 {
     return(!(e is LocalizedException) && GrayException.IsGrayException(e));
 }
Example #3
0
 public static bool ExceptionFilter(object exception)
 {
     return(GrayException.ExceptionFilter(exception, new GrayException.IsGrayExceptionDelegate(GrayException.IsGrayException), new Action <Exception>(GrayException.ReportWatson)));
 }
Example #4
0
 private static bool ShouldMapException(Exception e, GrayException.IsGrayExceptionDelegate del)
 {
     return(!GrayException.CrashOnBug() && del(e));
 }