Esempio n. 1
0
 public ExceptionDescription(Exception exception, ExceptionCategory category, string message, Action retry)
 {
     this.Exception   = exception;
     this.Category    = category;
     this.Message     = message;
     this.RetryAction = retry;
 }
Esempio n. 2
0
 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;
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 /// <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)
 {
 }
Esempio n. 6
0
 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);
     }
 }
Esempio n. 7
0
        /// <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);
        }
Esempio n. 8
0
        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;
            }
        }
Esempio n. 9
0
 public PortalException(ExceptionCategory category, Exception innerException, string message)
     : base(category, innerException, message)
 {
 }
Esempio n. 10
0
 public CustomException(string comment, ExceptionCategory category)
 {
     this.Comment  = comment;
     this.Category = category;
 }
Esempio n. 11
0
 public ExceptionBase(ExceptionCategory category, string message)
     : base(message)
 {
     m_ExceptionCategory = category;
 }
Esempio n. 12
0
 /// <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);
 }
Esempio n. 13
0
 public int GetExceptionCount([NotNull] ExceptionCategory exceptionCategory)
 {
     return(_usedExceptionObjects.Count(eo => Equals(
                                            new ExceptionCategory(eo.ExceptionCategory),
                                            exceptionCategory)));
 }
Esempio n. 14
0
 public BillfoldException(ExceptionCategory category, string message)
     : base(category, message)
 {
 }
Esempio n. 15
0
 public PortalException(ExceptionCategory category, Exception innerException, string format, params object[] values)
     : base(category, innerException, string.Format(format, values))
 {
 }
Esempio n. 16
0
 public ExceptionBase(ExceptionCategory category, Exception innerException, string message)
     : base(message, innerException)
 {
     m_ExceptionCategory = category;
 }
Esempio n. 17
0
 private static void HandleFATAL(ExceptionCategory category, Exception exc)
 {
     DataLayer.ExceptionHandling.ExceptionLogger.LogException(category.ToString(), exc);
     //TODO: Stop Service
     throw exc;
 }
Esempio n. 18
0
 public ExceptionBase(ExceptionCategory category, Exception innerException, string format, params object[] values)
     : base (string.Format(format, values), innerException)
 {
     m_ExceptionCategory = category;
 }
Esempio n. 19
0
 public PortalException(ExceptionCategory category, string message)
     : base(category, message)
 {
 }
Esempio n. 20
0
 public BillfoldException(ExceptionCategory category, Exception innerException, string message)
     : base(category, innerException, message)
 {
 }