SonarQube: (Catch a list of specific exception subtypes instead)
问题 I have a question about generic exceptions. How would we know which non-generic exception to use when you have a try that does multiple things. For example: @PostConstruct protected void init() { try { HttpSession session = request.getSession(); String policyInfo = (String) session.getAttribute("policyInfo"); if(session.getAttribute("faxNumber") != null) { faxNumber = (String) session.getAttribute("faxNumber"); } policyNumber = (String) session.getAttribute("policyNumber"); JSONObject