Rebel.Cms.Web.RebelWebApplication.OnApplicationError C# (CSharp) Method

OnApplicationError() protected method

protected OnApplicationError ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected virtual void OnApplicationError(object sender, EventArgs e)
        {
            var ex = HttpContext.Current.Error;
            LogHelper.Error<RebelWebApplication>(ex.Message, ex);
            AppContext.FrameworkContext.TaskManager.ExecuteInContext(TaskTriggers.GlobalError, new TaskExecutionContext(sender, new TaskEventArgs(AppContext.FrameworkContext, e)));
            DisposeScope();
        }