3 instantiations of InternalLoggerException
Microsoft.Build (3)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
30
new(typeof(InternalLoggerException), (msg, inner) => new
InternalLoggerException
(msg, inner)),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
854
throw new
InternalLoggerException
(taskException.Message, taskException, ex.BuildEventArgs, ex.ErrorCode, ex.HelpKeyword, ex.InitializationException);
Errors\InternalLoggerException.cs (1)
253
throw new
InternalLoggerException
(message, innerException, e, errorCode, helpKeyword, initializationException);
31 references to InternalLoggerException
Microsoft.Build (24)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
30
new(typeof(
InternalLoggerException
), (msg, inner) => new InternalLoggerException(msg, inner)),
BackEnd\Components\Logging\EventSourceSink.cs (5)
10
using InternalLoggerException = Microsoft.Build.Exceptions.
InternalLoggerException
;
341
/// <exception cref="
InternalLoggerException
">Any exceptions which are not LoggerExceptions are wrapped in an InternalLoggerException</exception>
369
InternalLoggerException
.Throw(exception, buildEvent, "FatalErrorWhileLogging", false);
380
/// <exception cref="
InternalLoggerException
">Any exceptions which are not LoggerExceptions are wrapped in an InternalLoggerException</exception>
419
InternalLoggerException
.Throw(exception, buildEvent, "FatalErrorWhileLogging", false);
BackEnd\Components\Logging\LoggingService.cs (7)
16
using 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>
1475
InternalLoggerException
.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>
1815
InternalLoggerException
.Throw(e, null, "FatalErrorWhileInitializingLogger", true, logger.GetType().Name);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
819
else if (ex is
InternalLoggerException
)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
847
else if (type == typeof(
InternalLoggerException
))
851
InternalLoggerException
ex = taskException as
InternalLoggerException
;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1355
catch (Exception e) when (e is not LoggerException && e is not
InternalLoggerException
&& !ExceptionHandling.NotExpectedReflectionException(e))
Definition\ProjectCollection.cs (2)
24
using InternalLoggerException = Microsoft.Build.Exceptions.
InternalLoggerException
;
1744
catch (
InternalLoggerException
)
Logging\LoggerDescription.cs (4)
10
using InternalLoggerException = Microsoft.Build.Exceptions.
InternalLoggerException
;
166
InternalLoggerException
.Throw(null, null, "LoggerNotFoundError", true, this.Name);
170
when (!(e is LoggerException /* Polite logger Failure*/ || e is
InternalLoggerException
/* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e)))
172
InternalLoggerException
.Throw(e, null, "LoggerCreationError", true, Name);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\EventSourceSink_Tests.cs (2)
10
using InternalLoggerException = Microsoft.Build.Exceptions.
InternalLoggerException
;
283
Assert.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)
150
exceptionType = typeof(
InternalLoggerException
);
174
VerifyShutdownExceptions(logger, null, typeof(
InternalLoggerException
));
243
Assert.Throws<
InternalLoggerException
>(() =>
MSBuild (2)
XMake.cs (2)
995
catch (
InternalLoggerException
e)
1656
if (exception is LoggerException or
InternalLoggerException
or ProjectCacheException)