Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / mapping / config / InstanceConfig.java
index b9e4bce94d79ef71a910fd7132df6885005ae571..ff9a9f6ff7632f2a1ee3f2626f163e9da1a3000f 100644 (file)
@@ -171,7 +171,7 @@ public final class InstanceConfig {
                 } catch (final DocumentedException e) {
                     throw new DocumentedException("Error reading module " + typeElement.getTextContent() + " : "
                             + nameElement.getTextContent() + " - Expected child node with name "
-                            + nullableDummyContainerName + "." + e.getMessage());
+                            + nullableDummyContainerName + "." + e.getMessage(), e);
                 }
             } // else 2 elements, no need to descend
         }
@@ -189,7 +189,7 @@ public final class InstanceConfig {
         } catch (final DocumentedException e) {
             throw new DocumentedException(
                     "Error reading module " + typeElement.getTextContent() + " : " + nameElement.getTextContent()
-                            + " - " + e.getMessage(),
+                            + " - " + e.getMessage(), e,
                     e.getErrorType(), e.getErrorTag(), e.getErrorSeverity(), e.getErrorInfo());
         }
         // TODO: add check for conflicts between global and local edit strategy