public ExceptionDescription(Exception exception, ExceptionCategory category, string message, Action retry) { this.Exception = exception; this.Category = category; this.Message = message; this.RetryAction = retry; }
public HtmlExceptionCategoryCount([NotNull] ExceptionCategory category, int exceptionCount) { Name = category.Name ?? HtmlReportResources.HtmlTexts_UndefinedExceptionCategory; Category = category; ExceptionCount = exceptionCount; }
public SIGUANETDesktopException(ExceptionCategory category, string sourceMethod, Exception innerEx, params string[] args) : base(string.Empty, innerEx) { this._category = category; this._timeStamp = DateTime.Now; this._sourceMethod = sourceMethod; this._args = args; AppLog.Instance.Log(this); }
/// <summary> /// Raises an unhandled exception. /// </summary> /// <param name="sourceType">The source class where the exception was catched.</param> /// <param name="sourceObject">The source object where the exception was catched.</param> /// <param name="ex">The exception object itself</param> /// <param name="methodDescription">A short description what the method does exactly.</param> /// <param name="category">The category of the exception.</param> public static void RaiseUnhandledException( Type sourceType, object sourceObject, Exception ex, string methodDescription = "", ExceptionCategory category = ExceptionCategory.NonCritical) { }
private static void HandleNORMAL(ExceptionCategory category, Exception exc) { try { DataLayer.ExceptionHandling.ExceptionLogger.SaveExceptionToDB(category.ToString(), exc); } catch (Exception innerExc) { DataLayer.ExceptionHandling.ExceptionLogger.LogException(category.ToString(), exc); HandleException(ExceptionCategory.Fatal, innerExc); } }
/// <summary> /// 例外を登録します。 /// </summary> public static void Register(Exception excp, ExceptionCategory category, string message = null, Action retry = null) { if (excp == null) { throw new ArgumentNullException("excp"); } WebException wex; if (Setting.IsInitialized && Setting.Instance.ExperienceProperty.IgnoreTimeoutError && (wex = excp as WebException) != null && wex.Status == WebExceptionStatus.Timeout) { return; } exceptions.AddLast(new ExceptionDescription(excp, category, message ?? excp.Message, retry)); OnExceptionUpdated(EventArgs.Empty); }
public static void HandleException(ExceptionCategory category, Exception exception) { switch (category) { case ExceptionCategory.Normal: HandleNORMAL(category, exception); break; case ExceptionCategory.Low: break; case ExceptionCategory.Fatal: HandleFATAL(category, exception); break; case ExceptionCategory.High: HandleHIGH(category, exception); break; default: break; } }
public PortalException(ExceptionCategory category, Exception innerException, string message) : base(category, innerException, message) { }
public CustomException(string comment, ExceptionCategory category) { this.Comment = comment; this.Category = category; }
public ExceptionBase(ExceptionCategory category, string message) : base(message) { m_ExceptionCategory = category; }
/// <summary> /// 例外を登録します。 /// </summary> public static void Register(Exception excp, ExceptionCategory category, string message = null, Action retry = null) { if (excp == null) throw new ArgumentNullException("excp"); WebException wex; if (Setting.IsInitialized && Setting.Instance.ExperienceProperty.IgnoreTimeoutError && (wex = excp as WebException) != null && wex.Status == WebExceptionStatus.Timeout) return; wex = excp as WebException; if ((wex != null) && (wex.Status == WebExceptionStatus.SecureChannelFailure)) { return; } exceptions.AddLast(new ExceptionDescription(excp, category, message ?? excp.Message, retry)); OnExceptionUpdated(EventArgs.Empty); }
public int GetExceptionCount([NotNull] ExceptionCategory exceptionCategory) { return(_usedExceptionObjects.Count(eo => Equals( new ExceptionCategory(eo.ExceptionCategory), exceptionCategory))); }
public BillfoldException(ExceptionCategory category, string message) : base(category, message) { }
public PortalException(ExceptionCategory category, Exception innerException, string format, params object[] values) : base(category, innerException, string.Format(format, values)) { }
public ExceptionBase(ExceptionCategory category, Exception innerException, string message) : base(message, innerException) { m_ExceptionCategory = category; }
private static void HandleFATAL(ExceptionCategory category, Exception exc) { DataLayer.ExceptionHandling.ExceptionLogger.LogException(category.ToString(), exc); //TODO: Stop Service throw exc; }
public ExceptionBase(ExceptionCategory category, Exception innerException, string format, params object[] values) : base (string.Format(format, values), innerException) { m_ExceptionCategory = category; }
public PortalException(ExceptionCategory category, string message) : base(category, message) { }
public BillfoldException(ExceptionCategory category, Exception innerException, string message) : base(category, innerException, message) { }