Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block.

This rule is deprecated, use {rule:squid:S2221} instead.