Fix S2737 FP: Raised when exception filter is used #8199
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: False Positive
Rule IS triggered when it shouldn't be.
Milestone
Description
S2737 is raised in the following circumstance:
In this case LogException always returns false and therefore the catch should always be skipped but just in case the LogException function has a bug we place throw there.
Repro steps
See Description.
Expected behavior
No warnings for catch statement with exception filter.
Actual behavior
S2737 is raised for catch with exception filter.
Known workarounds
Suppression.
Related information
The text was updated successfully, but these errors were encountered: