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:
Taher A. Alkhateeb
2017-06-23 21:40:51 +00:00
parent 6f82482c4c
commit 662b54cf8a
@@ -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();