Elmah.ErrorTweetModule.OnError C# (CSharp) Méthode

OnError() protected méthode

The handler called when an unhandled exception bubbles up to the module.
protected OnError ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void
        protected virtual void OnError(object sender, EventArgs args)
        {
            var application = (HttpApplication) sender;
            LogException(application.Server.GetLastError(), new HttpContextWrapper(application.Context));
        }