Beispiel #1
0
 /// <summary>
 /// Log error
 /// </summary>
 /// <param name="ex">Exception</param>
 protected void LogError(BaseException ex)
 {
     if (!(logger is null))
     {
         logger.Error(ex.Message);
         logger.Error(ex.Context);
         logger.Debug(ex.InnerException.Message);
     }
 }
Beispiel #2
0
 /// <summary>
 /// HandleFatalErrors
 /// </summary>
 /// <param name="ex">Exception</param>
 public void handleFatalError(BaseException ex)
 {
     LogError(ex);
     ShowError(ex.Message, ex.Context);
     callExit();
 }
Beispiel #3
0
 /// <summary>
 /// Handling Error
 /// </summary>
 /// <param name="ex">Exception</param>
 public void handleError(BaseException ex)
 {
     LogError(ex);
     ShowError(ex.Message, ex.Context);
 }