I tried to log some activities in case that a specific exception raised, and re-throw it. But the analyzer reports that S6667: Logging in a catch clause should pass the caught exception as a parameter.
If I put the exception as a parameter, S2139 will be triggered.
Description
I tried to log some activities in case that a specific exception raised, and re-throw it. But the analyzer reports that S6667: Logging in a catch clause should pass the caught exception as a parameter.
If I put the exception as a parameter, S2139 will be triggered.
Repro steps
Expected behavior
If the exception is going to be re-thrown, S6667 should not be triggered.
Actual behavior
S6667 is still triggered in the case that the exception is going to be re-thrown.
Known workarounds
N/A
Related information