summaryrefslogtreecommitdiffstats
path: root/common/yang-whitelist/yang-whitelist-impl/src/main
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-09-07 12:22:28 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-09-07 12:22:28 +0200
commit61ae76644a2d68823aaeabf4c0310c1717f52236 (patch)
treede07da73c868fc5bd00cba94fffde4bdb95144e7 /common/yang-whitelist/yang-whitelist-impl/src/main
parent242a61de29d26eb2a47e95e0228ec72555f1a996 (diff)
Fix Sonar error-handling issues
Change-Id: Iae8a7d27ed4ba778abe5bdbb937f55fa4d7a6638 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'common/yang-whitelist/yang-whitelist-impl/src/main')
-rw-r--r--common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java b/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
index d14b2428f..02bdfe122 100644
--- a/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
+++ b/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
@@ -66,7 +66,7 @@ public class YangModuleWhitelistWriter extends JAXBContextHolder {
try {
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, value);
} catch (PropertyException e) {
- throw new IllegalStateException("Unable to setup pretty print");
+ throw new IllegalStateException("Unable to setup pretty print", e);
}
}