/// <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); } }
/// <summary> /// HandleFatalErrors /// </summary> /// <param name="ex">Exception</param> public void handleFatalError(BaseException ex) { LogError(ex); ShowError(ex.Message, ex.Context); callExit(); }
/// <summary> /// Handling Error /// </summary> /// <param name="ex">Exception</param> public void handleError(BaseException ex) { LogError(ex); ShowError(ex.Message, ex.Context); }