lint/style/prefer-catch-name-from-type
In the coding-style set. Safe fix.
What it does
Type and name of catch exception should match
Configuration
[lint.rules]
"style/prefer-catch-name-from-type" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
CatchExceptionNameMatchingType(rector)