1 write to Exception
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
61
Exception
= 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)
154
analyzerFileReference.AnalyzerLoadFailed += (sender, e) => throw e.
Exception
?? new NotSupportedException(e.Message);
Microsoft.CodeAnalysis (2)
CommandLine\CommandLineArguments.cs (2)
502
diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_UnableToLoadAnalyzer, analyzerReference.FullPath, e.
Exception
?.ToString() ?? e.Message);
505
diagnostic = new DiagnosticInfo(messageProvider, messageProvider.WRN_AnalyzerCannotBeCreated, e.TypeName ?? "", analyzerReference.FullPath, e.
Exception
?.ToString() ?? e.Message);
Microsoft.CodeAnalysis.UnitTests (5)
AnalyzerAssemblyLoaderTests.cs (4)
245
analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.
Exception
!.Message);
247
analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.
Exception
!.Message);
761
analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.
Exception
!.Message);
763
analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.
Exception
!.Message);
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (1)
32
analyzerRef.AnalyzerLoadFailed += (s, e) => analyzerLoadException = e.
Exception
;