private void Application_Error(object sender, EventArgs e) { Exception ex = this.Server.GetLastError(); if (ex == null) { return; } if (ex is ThreadAbortException) { Log.Verbose("The thread was being aborted. {Exception}.", ex); return; } MixERPException exception = ex as MixERPException; if (exception != null) { Log.Verbose("Handling exception."); MixERPExceptionManager.HandleException(exception); return; } Log.Error("Exception occurred. {Exception}.", ex); if (ex.InnerException != null) { Log.Error("Inner Exception. {InnerException}.", ex.InnerException); } throw ex; }
private void Application_Error(object sender, EventArgs e) { Exception ex = this.Server.GetLastError(); if (ex == null) { return; } if (ex is ThreadAbortException) { return; } MixERPExceptionManager.HandleException(ex); }
private void Application_Error(object sender, EventArgs e) { // Code that runs when an unhandled error occurs Exception ex = this.Server.GetLastError(); if (ex == null) { return; } if (ex is ThreadAbortException) { return; } MixERPExceptionManager.HandleException(ex); }