Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / messagebus-netconf / src / main / java / org / opendaylight / netconf / messagebus / eventsources / netconf / NetconfEventSource.java
index 69abbad23f0ad4d1ab823fac4a99a43211710f95..26609d21e31196c1291d72e516b6847727ecc28e 100644 (file)
@@ -12,7 +12,6 @@ import static com.google.common.util.concurrent.Futures.immediateFuture;
 
 import com.google.common.base.Optional;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
 import com.google.common.collect.ArrayListMultimap;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Multimap;
@@ -235,7 +234,7 @@ public class NetconfEventSource implements EventSource, DOMNotificationListener
         try {
             domPublish.putNotification(new TopicDOMNotification(topicNotification));
         } catch (final InterruptedException e) {
-            throw Throwables.propagate(e);
+            throw new RuntimeException(e);
         }
     }
 
@@ -254,7 +253,7 @@ public class NetconfEventSource implements EventSource, DOMNotificationListener
             return Builders.anyXmlBuilder().withNodeIdentifier(PAYLOAD_ARG).withValue(new DOMSource(element)).build();
         } catch (IOException | XMLStreamException e) {
             LOG.error("Unable to encapsulate notification.", e);
-            throw Throwables.propagate(e);
+            throw new RuntimeException(e);
         }
     }