38 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)
217
throw new
LoggerException
(message, e, errorCode, helpKeyword);
418
throw new
LoggerException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", ""));
447
throw new
LoggerException
(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", parameter));
466
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 (7)
Logging\BaseConsoleLogger.cs (1)
954
throw new
LoggerException
(message, null, errorCode, helpKeyword);
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
121
throw new
LoggerException
(message);
182
throw new
LoggerException
(message, e, errorCode, helpKeyword);
Logging\FileLogger.cs (3)
149
throw new
LoggerException
(message, e.InnerException, errorCode, helpKeyword);
197
throw new
LoggerException
(message, ex.InnerException, errorCode, helpKeyword);
274
throw new
LoggerException
(ex.Message, ex.InnerException, "MSB4128", null);
Logging\LoggerDescription.cs (1)
244
throw new
LoggerException
(l.Message, innerException, l.ErrorCode, l.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)
336
throw new
LoggerException
(message, null, errorCode, helpKeyword);
XMake.cs (1)
4098
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);
98 references to LoggerException
Microsoft.Build (43)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35
new(typeof(
LoggerException
), (msg, inner) => new LoggerException(msg, inner)),
BackEnd\Components\Logging\EventSourceSink.cs (30)
329
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
340
catch (
LoggerException
)
371
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
382
catch (
LoggerException
)
413
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
424
catch (
LoggerException
)
455
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
466
catch (
LoggerException
)
497
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
508
catch (
LoggerException
)
539
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
550
catch (
LoggerException
)
577
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
588
catch (
LoggerException
)
619
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
630
catch (
LoggerException
)
661
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
672
catch (
LoggerException
)
703
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
714
catch (
LoggerException
)
745
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
756
catch (
LoggerException
)
787
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
798
catch (
LoggerException
)
829
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
840
catch (
LoggerException
)
874
catch (
LoggerException
)
905
/// <exception cref="
LoggerException
">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
916
catch (
LoggerException
exception)
958
catch (
LoggerException
)
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)
412
/// <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 (29)
Engine\Engine.cs (8)
1034
/// <exception cref="
LoggerException
">Logger indicating it failed in a controlled way</exception>
1053
/// <exception cref="
LoggerException
">Logger indicating it failed in a controlled way</exception>
1069
catch (
LoggerException
)
1103
/// <exception cref="
LoggerException
">Logger indicating it failed in a controlled way</exception>
1146
catch (
LoggerException
)
1196
/// <exception cref="
LoggerException
">Logger indicating it failed in a controlled way</exception>
1233
catch (
LoggerException
)
1904
catch (
LoggerException
)
Engine\EventSource.cs (14)
66
catch (
LoggerException
)
100
catch (
LoggerException
)
134
catch (
LoggerException
)
168
catch (
LoggerException
)
202
catch (
LoggerException
)
236
catch (
LoggerException
)
270
catch (
LoggerException
)
304
catch (
LoggerException
)
338
catch (
LoggerException
)
372
catch (
LoggerException
)
406
catch (
LoggerException
)
440
catch (
LoggerException
)
474
catch (
LoggerException
)
508
catch (
LoggerException
)
Engine\Node.cs (1)
519
catch (
LoggerException
e)
Engine\TaskEngine.cs (3)
576
catch (
LoggerException
)
721
catch (
LoggerException
)
1551
catch (
LoggerException
)
Logging\LoggerDescription.cs (3)
238
if (innerException is
LoggerException
)
243
LoggerException
l = ((
LoggerException
)innerException);
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)
959
catch (
LoggerException
e)
1645
if (exception is
LoggerException
or InternalLoggerException or ProjectCacheException)
4421
catch (
LoggerException
)