kemitix-checkstyle-ruleset/builder/src/main/resources/rules/EitherLogOrThrow.md

5 lines
211 B
Markdown
Raw Normal View History

Checks that when an exception is caught, that if it is logged then it is not also re-thrown. Log or throw; one or the other or neither, but not both.
Accepts `java.util.logging.Logger` and `org.slf4j.Logger`.