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

            if (ev != null)
                ev(this, e);
        }
Exemplo n.º 2
0
		private void OnException(object sender, HttpExceptionEventArgs e)
		{
			e.Handled = true;
			var buffer = Encoding.UTF8.GetBytes(e.Exception.ToString());
			e.Response.ContentType = "text/plain";
			e.Response.OutputStream.Write(buffer, 0, buffer.Length);
		}
Exemplo n.º 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;
        }
Exemplo n.º 4
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;
        }
Exemplo n.º 5
0
 protected virtual void OnUnhandledException(HttpExceptionEventArgs e)
 {
     UnhandledException?.Invoke(this, e);
 }
Exemplo n.º 6
0
        void _server_UnhandledException(object sender, HttpExceptionEventArgs e)
        {
            e.Handled = true;

            Log.Warn("Unhandled Help Server exception", e.Exception);
        }