[java] AvoidCatchingThrowable should flag catch (Error e)
#2583
Labels
an:enhancement
An improvement on existing features / rules
catch (Error e)
#2583
Affects PMD Version:
6.22.0
Rule:
AvoidCatchingThrowable
Description:
It is recommended to have AvoidCatchingThrowable additionally check
catch (Error e)
Similar to
Throwable
,Error
is the superclass of all errors, which are not meant to be caught by applications.Code Sample demonstrating the suggestion:
Type:
Suggestions for rule improvement
Running PMD through:
CLI
The text was updated successfully, but these errors were encountered: