Ejemplo n.º 1
0
        protected virtual void OnUnhandledException(HttpExceptionEventArgs e)
        {
            var ev = UnhandledException;

            if (ev != null)
            {
                ev(this, e);
            }
        }
Ejemplo n.º 2
0
        internal bool RaiseUnhandledException(HttpContext context, Exception exception)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var e = new HttpExceptionEventArgs(context, exception);

            OnUnhandledException(e);

            return(e.Handled);
        }