Skip to content

GH-3421: Resolve throws Exception; in the API #3916

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

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

artembilan
Copy link
Member

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

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
@garyrussell garyrussell merged commit cfeaeca into spring-projects:main Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revise all the throws Exception; // NOSONAR
2 participants