/// <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); }
public void AddFatalError(string message) { FatalErrors.Add(new TreatmentEvent(MessagesType.FatalError, message)); }
} // Get private void AddFatalError(string sError) { FatalErrors.Add(sError); this.log.Debug(sError); } // AddFatalError