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