Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }