Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.quality.empty-catch

Empty catch block. The exception is silently discarded, which hides failures and makes bugs hard to diagnose.

Last updated:

Suite: Code quality

java

Empty catch block. The exception is silently discarded, which hides failures and makes bugs hard to diagnose.

Category: QUALITY · Engine rule severity: INFO

How to fix it

Handle, log or rethrow the exception. If ignoring it is intentional, name the variable ignored and add a comment explaining why.

References

Source: packages/engine/rules/quality/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.