31 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)
219throw new LoggerException(message, e, errorCode, helpKeyword); 420throw new LoggerException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", "")); 449throw new LoggerException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidBinaryLoggerParameters", parameter)); 468throw 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.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)
349throw new LoggerException(message, null, errorCode, helpKeyword);
XMake.cs (1)
4109throw 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);
43 references to LoggerException
Microsoft.Build (17)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
35new(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> 350catch (LoggerException) 379/// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception> 390catch (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> 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)
414/// <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.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)
970catch (LoggerException e) 1656if (exception is LoggerException or InternalLoggerException or ProjectCacheException) 4432catch (LoggerException)