Bump upstream versions
[netconf.git] / netconf / mdsal-netconf-connector / src / main / java / org / opendaylight / netconf / mdsal / connector / ops / get / AbstractGet.java
index c3bc2765c9c3900b30ac82dc3d53d83226c892cb..0d243f67ceb6d28392f3d6f5c44875b6d79fff40 100644 (file)
@@ -73,7 +73,8 @@ abstract class AbstractGet extends AbstractSingletonNetconfOperation {
                 write(nnStreamWriter, currentContext, dataRoot.coerceParent(), data);
             }
         } catch (IOException e) {
-            throw new RuntimeException(e);
+            // FIXME: throw DocumentedException
+            throw new IllegalStateException(e);
         }
 
         return result.getNode();
@@ -104,7 +105,8 @@ abstract class AbstractGet extends AbstractSingletonNetconfOperation {
         try {
             return XML_OUTPUT_FACTORY.createXMLStreamWriter(result);
         } catch (final XMLStreamException e) {
-            throw new RuntimeException(e);
+            // FIXME: throw DocumentedException
+            throw new IllegalStateException(e);
         }
     }