31 instantiations of LoggerException
Microsoft.Build (14)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35
new(typeof(LoggerException), (msg, inner) => new
LoggerException
(msg, inner)),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
845
throw new
LoggerException
(taskException.Message, taskException);
Logging\BaseConsoleLogger.cs (1)
1041
throw new
LoggerException
(message, null, errorCode, helpKeyword);
Logging\BinaryLogger\BinaryLogger.cs (4)
219
throw new
LoggerException
(message, e, errorCode, helpKeyword);
420
throw new
LoggerException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", ""));
449
throw new
LoggerException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", parameter));
468
throw new
LoggerException
(message, e, errorCode, helpKeyword);
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
76
throw new
LoggerException
(message);
125
throw new
LoggerException
(message, e, errorCode, helpKeyword);
Logging\FileLogger.cs (3)
129
throw new
LoggerException
(message, e.InnerException, errorCode, helpKeyword);
158
throw new
LoggerException
(message, ex.InnerException, errorCode, helpKeyword);
225
throw new
LoggerException
(ex.Message, ex.InnerException, "MSB4128", null);
Logging\LoggerDescription.cs (2)
226
throw new
LoggerException
(message, e.InnerException);
236
throw new
LoggerException
(le.Message, le, le.ErrorCode, le.HelpKeyword);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\EventSourceSink_Tests.cs (1)
95
exceptionList.Add(new
LoggerException
());
BackEnd\LoggingService_Tests.cs (3)
170
LoggerThrowException logger = new LoggerThrowException(true, false, new
LoggerException
("Hello"));
232
LoggerThrowException exceptionLogger = new LoggerThrowException(false, true, new
LoggerException
());
1231
: base(true, false, new
LoggerException
("Hello"))
MSBuild (2)
TerminalLogger\TerminalLogger.cs (1)
349
throw new
LoggerException
(message, null, errorCode, helpKeyword);
XMake.cs (1)
4109
throw new
LoggerException
(e.Message, e);
TaskUsageLogger (9)
TaskUsageLogger.cs (9)
95
throw new
LoggerException
(@"Path to write CSV to required. Specify using the following pattern: '/logger:TaskUsageLogger,D:\Repos\msbuild\bin\Windows_NT\Debug\TaskUsageLogger.dll;mylog.csv");
129
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Failed to load and read task registration information from project '{0}'. {1}", e.ProjectFile, ex.Message));
178
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why do we have two instances of {0}?", t));
195
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why is toolset '{0}' missing??", toolsVersion));
303
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "This logger doesn't know how to evaluate '{0}'!", unevaluatedString));
337
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why haven't we collected using task data for {0}?", projectFile));
350
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why don't we have a cached ToolsVersion for {0}?", projectFile));
356
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why haven't we collected default using task data for TV {0}?", parentProjectToolsVersion));
364
throw new
LoggerException
(String.Format(CultureInfo.CurrentCulture, "Why couldn't we find a matching UsingTask for task {0} in project {1}?", taskName, projectFile));
XmlFileLogger (2)
XmlFileLogger.cs (2)
160
throw new
LoggerException
(invalidParamSpecificationMessage);
167
throw new
LoggerException
(invalidParamSpecificationMessage);
43 references to LoggerException
Microsoft.Build (17)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35
new(typeof(
LoggerException
), (msg, inner) => new LoggerException(msg, inner)),
BackEnd\Components\Logging\EventSourceSink.cs (4)
340
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
350
catch (
LoggerException
)
379
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
390
catch (
LoggerException
exception)
BackEnd\Components\Logging\LoggingService.cs (6)
886
/// <exception cref="
LoggerException
"> A logger may throw a logger exception when shutting down</exception>
1121
/// <exception cref="
LoggerException
">If a logger exception is thrown while creating or initializing the distributed or central logger</exception>
1466
/// <exception cref="
LoggerException
">Errors during logger shutdown may throw a LoggerException, in this case the exception is re-thrown</exception>
1473
catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not
LoggerException
)
1784
/// <exception cref="
LoggerException
">A logger exception thrown by a logger when its initialize call is made</exception>
1813
catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not
LoggerException
)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
838
if (type == typeof(
LoggerException
))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1355
catch (Exception e) when (e is not
LoggerException
&& e is not InternalLoggerException && !ExceptionHandling.NotExpectedReflectionException(e))
Definition\ProjectCollection.cs (1)
1740
catch (
LoggerException
)
Logging\BinaryLogger\BinaryLogger.cs (1)
414
/// <exception cref="
LoggerException
">
Logging\LoggerDescription.cs (2)
170
when (!(e is
LoggerException
/* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e)))
228
catch (TargetInvocationException e) when (e.InnerException is
LoggerException
le)
Microsoft.Build.Engine.UnitTests (8)
BackEnd\EventSourceSink_Tests.cs (1)
270
if (exceptionToRaise is
LoggerException
)
BackEnd\LoggingService_Tests.cs (3)
144
Type exceptionType = typeof(
LoggerException
);
171
VerifyShutdownExceptions(logger, null, typeof(
LoggerException
));
230
Assert.Throws<
LoggerException
>(() =>
FileLogger_Tests.cs (4)
84
Assert.Throws<
LoggerException
>(() =>
172
Assert.Throws<
LoggerException
>(() =>
186
Assert.Throws<
LoggerException
>(() =>
531
Assert.Throws<
LoggerException
>(() =>
Microsoft.Build.Utilities.Core (15)
MuxLogger.cs (15)
644
catch (
LoggerException
)
689
catch (
LoggerException
)
732
catch (
LoggerException
)
772
catch (
LoggerException
)
817
catch (
LoggerException
)
875
catch (
LoggerException
)
917
catch (
LoggerException
)
959
catch (
LoggerException
)
1001
catch (
LoggerException
)
1043
catch (
LoggerException
)
1085
catch (
LoggerException
)
1127
catch (
LoggerException
)
1174
catch (
LoggerException
)
1233
catch (
LoggerException
)
1279
catch (
LoggerException
)
MSBuild (3)
XMake.cs (3)
970
catch (
LoggerException
e)
1656
if (exception is
LoggerException
or InternalLoggerException or ProjectCacheException)
4432
catch (
LoggerException
)