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