1 write to AllowedExceptions
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotRaiseExceptionsInUnexpectedLocations.cs (1)
153
AllowedExceptions
= allowedExceptionTypes.WhereNotNull().ToImmutableHashSet();
2 references to AllowedExceptions
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotRaiseExceptionsInUnexpectedLocations.cs (2)
111
if (methodCategory.
AllowedExceptions
.IsEmpty || !methodCategory.
AllowedExceptions
.Any(n => thrownExceptionType.IsAssignableTo(n, compilation)))