1 write to Exception
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
61Exception = exceptionOpt;
10 references to Exception
CodeStyleConfigFileGenerator (1)
Program.cs (1)
81=> throw e.Exception ?? new InvalidOperationException(e.Message);
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
400=> throw e.Exception ?? new NotSupportedException(e.Message);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
154analyzerFileReference.AnalyzerLoadFailed += (sender, e) => throw e.Exception ?? new NotSupportedException(e.Message);
Microsoft.CodeAnalysis (2)
CommandLine\CommandLineArguments.cs (2)
502diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_UnableToLoadAnalyzer, analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message); 505diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_AnalyzerCannotBeCreated, e.TypeName ?? "", analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message);
Microsoft.CodeAnalysis.UnitTests (5)
AnalyzerAssemblyLoaderTests.cs (4)
245analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 247analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 761analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 763analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message);
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (1)
32analyzerRef.AnalyzerLoadFailed += (s, e) => analyzerLoadException = e.Exception;