3 instantiations of InternalLoggerException
Microsoft.Build (3)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
30new(typeof(InternalLoggerException), (msg, inner) => new InternalLoggerException(msg, inner)),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
854throw new InternalLoggerException(taskException.Message, taskException, ex.BuildEventArgs, ex.ErrorCode, ex.HelpKeyword, ex.InitializationException);
Errors\InternalLoggerException.cs (1)
253throw new InternalLoggerException(message, innerException, e, errorCode, helpKeyword, initializationException);
31 references to InternalLoggerException
Microsoft.Build (24)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
30new(typeof(InternalLoggerException), (msg, inner) => new InternalLoggerException(msg, inner)),
BackEnd\Components\Logging\EventSourceSink.cs (5)
10using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; 341/// <exception cref="InternalLoggerException">Any exceptions which are not LoggerExceptions are wrapped in an InternalLoggerException</exception> 369InternalLoggerException.Throw(exception, buildEvent, "FatalErrorWhileLogging", false); 380/// <exception cref="InternalLoggerException">Any exceptions which are not LoggerExceptions are wrapped in an InternalLoggerException</exception> 419InternalLoggerException.Throw(exception, buildEvent, "FatalErrorWhileLogging", false);
BackEnd\Components\Logging\LoggingService.cs (7)
16using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; 887/// <exception cref="InternalLoggerException">A logger will wrap other exceptions (except ExceptionHandling.IsCriticalException exceptions) in a InternalLoggerException if it crashes during shutdown</exception> 1122/// <exception cref="InternalLoggerException">If any exception (other than a loggerException)is thrown while creating or initializing the distributed or central logger, we will wrap these exceptions in an InternalLoggerException</exception> 1465/// <exception cref="InternalLoggerException">Any exception comming from a logger during shutdown that is not a LoggerException is wrapped in an InternalLoggerException and thrown</exception> 1475InternalLoggerException.Throw(e, null, "FatalErrorDuringLoggerShutdown", false, logger.GetType().Name); 1785/// <exception cref="InternalLoggerException">Any exceptions from initializing the logger which are not loggerExceptions are caught and wrapped in a InternalLoggerException</exception> 1815InternalLoggerException.Throw(e, null, "FatalErrorWhileInitializingLogger", true, logger.GetType().Name);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
819else if (ex is InternalLoggerException)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
847else if (type == typeof(InternalLoggerException)) 851InternalLoggerException ex = taskException as InternalLoggerException;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1355catch (Exception e) when (e is not LoggerException && e is not InternalLoggerException && !ExceptionHandling.NotExpectedReflectionException(e))
Definition\ProjectCollection.cs (2)
24using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; 1744catch (InternalLoggerException)
Logging\LoggerDescription.cs (4)
10using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; 166InternalLoggerException.Throw(null, null, "LoggerNotFoundError", true, this.Name); 170when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e))) 172InternalLoggerException.Throw(e, null, "LoggerCreationError", true, Name);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\EventSourceSink_Tests.cs (2)
10using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; 283Assert.True(e is InternalLoggerException); // "Expected general exception to be raised in event handler and re-thrown by event source as a InternalLoggerException"
BackEnd\LoggingService_Tests.cs (3)
150exceptionType = typeof(InternalLoggerException); 174VerifyShutdownExceptions(logger, null, typeof(InternalLoggerException)); 243Assert.Throws<InternalLoggerException>(() =>
MSBuild (2)
XMake.cs (2)
995catch (InternalLoggerException e) 1656if (exception is LoggerException or InternalLoggerException or ProjectCacheException)