Aqueduct.Monitoring.MVC.MVCNotificationProcessor.HandleError C# (CSharp) Method

HandleError() public static method

public static HandleError ( Exception lastError ) : void
lastError System.Exception
return void
        public static void HandleError(Exception lastError)
        {
            Exception error = lastError.GetBaseException();
            if (error is HttpException && ((HttpException)error).ErrorCode == 404) return;
            
            var sensor = new ExceptionSensor();
            sensor.AddError(error);
        }