Empty 'catch' block
Reports empty catch
blocks. While occasionally intended, empty catch
blocks can make debugging extremely difficult.
Example:
try {
throw new Exception()
}
catch (Exception e) {
}
After the quick-fix is applied:
try {
throw new Exception()
}
catch (Exception ignored) {
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GroovyEmptyCatchBlock
Here you can find the description of settings available for the Empty 'catch' block inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Groovy, 243.23126 |