Improved: exception handling block in ContainerConfig removing code duplication
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -155,11 +155,7 @@ public class ContainerConfig {
|
||||
Document containerDocument = null;
|
||||
try {
|
||||
containerDocument = UtilXml.readXmlDocument(xmlUrl, true);
|
||||
} catch (SAXException e) {
|
||||
throw new ContainerException("Error reading the container config file: " + xmlUrl, e);
|
||||
} catch (ParserConfigurationException e) {
|
||||
throw new ContainerException("Error reading the container config file: " + xmlUrl, e);
|
||||
} catch (IOException e) {
|
||||
} catch (SAXException | ParserConfigurationException | IOException e) {
|
||||
throw new ContainerException("Error reading the container config file: " + xmlUrl, e);
|
||||
}
|
||||
Element root = containerDocument.getDocumentElement();
|
||||
|
||||
Reference in New Issue
Block a user