Exemple #1
0
        /// <summary>
        /// Add a fatal error to treament with http code
        /// </summary>
        /// <param name="httpcode"></param>
        /// <param name="message"></param>
        public void AddFatalErrorWithCode(HttpStatusCode httpcode, string message = null)
        {
            var tre = new TreatmentEvent(MessagesType.FatalError, httpcode, message);

            StatusCode = httpcode;
            FatalErrors.Add(tre);
        }
Exemple #2
0
 public void AddFatalError(string message)
 {
     FatalErrors.Add(new TreatmentEvent(MessagesType.FatalError, message));
 }
Exemple #3
0
        }         // Get

        private void AddFatalError(string sError)
        {
            FatalErrors.Add(sError);
            this.log.Debug(sError);
        }         // AddFatalError