-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Revise all the throws Exception; // NOSONAR #3421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
is this for every class in the entire codebase? |
I just did a search for this sentence: So, not too much. The goal is to not have such a generic In other places we would need to what exceptions are thrown and re-throw them as some particular Let's see what is going on when you just remove them and build the project |
@artembilan I think I can take care of that |
Sure! Just pull the latest Feel free to PR or leave comments over here if something is off or out of your control. Thank you! |
Hello guys best regards |
Hi @aml8801 ! You know it doesn't matter for the project who contributes the fix and since there is no any news from @mikhail2048 for a couple months already, I think it is safe for you to take this issue and PR the fix. Thank you! |
Hello again, |
Hi there! We are heading to RC1 soon enough. Thank you for understanding! |
Fixes spring-projects#3421 Remove `throws Exception;` from production code to honor the rule `Generic exceptions should never be thrown` which is enabled on SonarQube * Rework affected usages to `try..catch` with throwing respective runtime exception or just logging * Some other refactoring for the affected classes
As I said before: we have release next week, so this breaking change must make it into the code base before |
Fixes #3421 Remove `throws Exception;` from production code to honor the rule `Generic exceptions should never be thrown` which is enabled on SonarQube * Rework affected usages to `try..catch` with throwing respective runtime exception or just logging * Some other refactoring for the affected classes
For example we have a code in the
WebSocketListener
like this:so, all those
throws Exception
have to be removed.The text was updated successfully, but these errors were encountered: