예제 #1
0
        /// <summary>
        /// Event thrown then a Http exception is unhandled
        /// </summary>
        /// <param name="args"></param>
        private void OnUnhandledException(HttpExceptionEventArgs args)
        {
            var ev = UnhandledException;

            if (ev != null)
            {
                ev(this, args);
            }
        }
예제 #2
0
        protected virtual void OnUnhandledException(HttpExceptionEventArgs e)
        {
            var ev = UnhandledException;

            if (ev != null)
            {
                ev(this, e);
            }
        }
예제 #3
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);
        }