I get a "Handle the following exception that could be thrown by ..." false positive

I do get “Handle the following exception that could be thrown by …” false positive on several Servlets.

The exception extends a custom exception that extends Exception. And the code that throws the exception is surrounded by try/catch that catches both the exception reported and Exception that it extends.

I’m using SonarQube Developer Edition - Version 9.9 (build 65466). The application is running java 17

I’ve moved your post to the Report a False-Positive section.

Please look at this post:

And include missing details, like a code snippet that can reproduce the issue.