Example #1
0
        protected virtual void OnUnhandledException(HttpExceptionEventArgs args)
        {
            var ev = UnhandledException;

            if (ev != null)
            {
                ev(this, args);
            }
        }
Example #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);
        }