Beispiel #1
0
        /// <summary>
        /// Both options will log all registered exceptions that remain, but in
        /// the first case previously the last exception launched will be added
        /// </summary>
        /// <param name="e">Exception that represents the last error happened</param>
        public static void LogRemainExceptions(
            Exception e)
        {
            // Last exception was not added yet
            if (!Errors.GetInstance().IsLastExceptionUsed(e))
            {
                Errors.LogErrorNow(e, -1, false);
            }

            // Last exception was already added
            else
            {
                Errors.LogRegisteredErrors();
            }
        }