38 instantiations of LoggerException
Microsoft.Build (14)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35new(typeof(LoggerException), (msg, inner) => new LoggerException(msg, inner)),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
845throw new LoggerException(taskException.Message, taskException);
Logging\BaseConsoleLogger.cs (1)
1041throw new LoggerException(message, null, errorCode, helpKeyword);
Logging\BinaryLogger\BinaryLogger.cs (4)
217throw new LoggerException(message, e, errorCode, helpKeyword); 418throw new LoggerException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", "")); 447throw new LoggerException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", parameter)); 466throw new LoggerException(message, e, errorCode, helpKeyword);
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
76throw new LoggerException(message); 125throw new LoggerException(message, e, errorCode, helpKeyword);
Logging\FileLogger.cs (3)
129throw new LoggerException(message, e.InnerException, errorCode, helpKeyword); 158throw new LoggerException(message, ex.InnerException, errorCode, helpKeyword); 225throw new LoggerException(ex.Message, ex.InnerException, "MSB4128", null);
Logging\LoggerDescription.cs (2)
226throw new LoggerException(message, e.InnerException); 236throw new LoggerException(le.Message, le, le.ErrorCode, le.HelpKeyword);
Microsoft.Build.Engine (7)
Logging\BaseConsoleLogger.cs (1)
954throw new LoggerException(message, null, errorCode, helpKeyword);
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
121throw new LoggerException(message); 182throw new LoggerException(message, e, errorCode, helpKeyword);
Logging\FileLogger.cs (3)
149throw new LoggerException(message, e.InnerException, errorCode, helpKeyword); 197throw new LoggerException(message, ex.InnerException, errorCode, helpKeyword); 274throw new LoggerException(ex.Message, ex.InnerException, "MSB4128", null);
Logging\LoggerDescription.cs (1)
244throw new LoggerException(l.Message, innerException, l.ErrorCode, l.HelpKeyword);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\EventSourceSink_Tests.cs (1)
95exceptionList.Add(new LoggerException());
BackEnd\LoggingService_Tests.cs (3)
170LoggerThrowException logger = new LoggerThrowException(true, false, new LoggerException("Hello")); 232LoggerThrowException exceptionLogger = new LoggerThrowException(false, true, new LoggerException()); 1231: base(true, false, new LoggerException("Hello"))
MSBuild (2)
TerminalLogger\TerminalLogger.cs (1)
336throw new LoggerException(message, null, errorCode, helpKeyword);
XMake.cs (1)
4098throw new LoggerException(e.Message, e);
TaskUsageLogger (9)
TaskUsageLogger.cs (9)
95throw 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"); 129throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Failed to load and read task registration information from project '{0}'. {1}", e.ProjectFile, ex.Message)); 178throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Why do we have two instances of {0}?", t)); 195throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Why is toolset '{0}' missing??", toolsVersion)); 303throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "This logger doesn't know how to evaluate '{0}'!", unevaluatedString)); 337throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Why haven't we collected using task data for {0}?", projectFile)); 350throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Why don't we have a cached ToolsVersion for {0}?", projectFile)); 356throw new LoggerException(String.Format(CultureInfo.CurrentCulture, "Why haven't we collected default using task data for TV {0}?", parentProjectToolsVersion)); 364throw 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)
160throw new LoggerException(invalidParamSpecificationMessage); 167throw new LoggerException(invalidParamSpecificationMessage);
98 references to LoggerException
Microsoft.Build (43)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35new(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> 340catch (LoggerException) 371/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 382catch (LoggerException) 413/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 424catch (LoggerException) 455/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 466catch (LoggerException) 497/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 508catch (LoggerException) 539/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 550catch (LoggerException) 577/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 588catch (LoggerException) 619/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 630catch (LoggerException) 661/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 672catch (LoggerException) 703/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 714catch (LoggerException) 745/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 756catch (LoggerException) 787/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 798catch (LoggerException) 829/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 840catch (LoggerException) 874catch (LoggerException) 905/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 916catch (LoggerException exception) 958catch (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> 1473catch (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> 1813catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
838if (type == typeof(LoggerException))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1355catch (Exception e) when (e is not LoggerException && e is not InternalLoggerException && !ExceptionHandling.NotExpectedReflectionException(e))
Definition\ProjectCollection.cs (1)
1740catch (LoggerException)
Logging\BinaryLogger\BinaryLogger.cs (1)
412/// <exception cref="LoggerException">
Logging\LoggerDescription.cs (2)
170when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e))) 228catch (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> 1069catch (LoggerException) 1103/// <exception cref="LoggerException">Logger indicating it failed in a controlled way</exception> 1146catch (LoggerException) 1196/// <exception cref="LoggerException">Logger indicating it failed in a controlled way</exception> 1233catch (LoggerException) 1904catch (LoggerException)
Engine\EventSource.cs (14)
66catch (LoggerException) 100catch (LoggerException) 134catch (LoggerException) 168catch (LoggerException) 202catch (LoggerException) 236catch (LoggerException) 270catch (LoggerException) 304catch (LoggerException) 338catch (LoggerException) 372catch (LoggerException) 406catch (LoggerException) 440catch (LoggerException) 474catch (LoggerException) 508catch (LoggerException)
Engine\Node.cs (1)
519catch (LoggerException e)
Engine\TaskEngine.cs (3)
576catch (LoggerException) 721catch (LoggerException) 1551catch (LoggerException)
Logging\LoggerDescription.cs (3)
238if (innerException is LoggerException) 243LoggerException l = ((LoggerException)innerException);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\EventSourceSink_Tests.cs (1)
270if (exceptionToRaise is LoggerException)
BackEnd\LoggingService_Tests.cs (3)
144Type exceptionType = typeof(LoggerException); 171VerifyShutdownExceptions(logger, null, typeof(LoggerException)); 230Assert.Throws<LoggerException>(() =>
FileLogger_Tests.cs (4)
84Assert.Throws<LoggerException>(() => 172Assert.Throws<LoggerException>(() => 186Assert.Throws<LoggerException>(() => 531Assert.Throws<LoggerException>(() =>
Microsoft.Build.Utilities.Core (15)
MuxLogger.cs (15)
644catch (LoggerException) 689catch (LoggerException) 732catch (LoggerException) 772catch (LoggerException) 817catch (LoggerException) 875catch (LoggerException) 917catch (LoggerException) 959catch (LoggerException) 1001catch (LoggerException) 1043catch (LoggerException) 1085catch (LoggerException) 1127catch (LoggerException) 1174catch (LoggerException) 1233catch (LoggerException) 1279catch (LoggerException)
MSBuild (3)
XMake.cs (3)
959catch (LoggerException e) 1645if (exception is LoggerException or InternalLoggerException or ProjectCacheException) 4421catch (LoggerException)