commit | 0fa1c1ade1281893428e451a9e0a05a5b64b9611 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Wed May 30 08:27:04 2018 -0700 |
committer | Ray Milkey <ray@opennetworking.org> | Wed May 30 08:27:04 2018 -0700 |
tree | bd91bf9c38d7087e86d9bd2040c8cecd4030a272 | |
parent | 83775682269fc8be7e00136c217a15ee386ed72c [diff] |
SONAR fix - don't use the generic RuntimeException Change-Id: Ibe65b2489f5962c2878350265ec76c7eaae70ce6
diff --git a/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/openconfig/TerminalDeviceDiscovery.java b/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/openconfig/TerminalDeviceDiscovery.java index 9d60e7b..f7c4fbf 100644 --- a/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/openconfig/TerminalDeviceDiscovery.java +++ b/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/openconfig/TerminalDeviceDiscovery.java
@@ -300,7 +300,7 @@ swVersion = xconf.getString("data/components/component/state/software-version", swVersion); hwVersion = xconf.getString("data/components/component/state/hardware-version", hwVersion); } catch (Exception e) { - throw new RuntimeException(new NetconfException("Failed to retrieve version info.", e)); + throw new IllegalStateException(new NetconfException("Failed to retrieve version info.", e)); } } else { log.info("TerminalDeviceDiscovery::discoverDeviceDetails - No netconf session for {}", did());