Пример #1
0
        internal static void HandleApplicationError(HttpContextBase context, IExceptionFormatter exceptionFormatter)
        {
            HttpServerUtilityBase httpServerUtility = context.Server;
            Exception             exception         = httpServerUtility.GetLastError();

            HttpException httpException = exception as HttpException;

            if (httpException != null)
            {
                exceptionFormatter.LogHttpException(context.Request, httpException);
            }
            else
            {
                exceptionFormatter.LogException(exception);
            }
        }
Пример #2
0
 public override Exception GetLastError()
 {
     return(_server.GetLastError());
 }