Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump upstream versions
[netconf.git]
/
netconf
/
mdsal-netconf-connector
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
mdsal
/
connector
/
ops
/
get
/
AbstractGet.java
diff --git
a/netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/AbstractGet.java
b/netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/AbstractGet.java
index c3bc2765c9c3900b30ac82dc3d53d83226c892cb..0d243f67ceb6d28392f3d6f5c44875b6d79fff40 100644
(file)
--- a/
netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/AbstractGet.java
+++ b/
netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/get/AbstractGet.java
@@
-73,7
+73,8
@@
abstract class AbstractGet extends AbstractSingletonNetconfOperation {
write(nnStreamWriter, currentContext, dataRoot.coerceParent(), data);
}
} catch (IOException e) {
write(nnStreamWriter, currentContext, dataRoot.coerceParent(), data);
}
} catch (IOException e) {
- throw new RuntimeException(e);
+ // FIXME: throw DocumentedException
+ throw new IllegalStateException(e);
}
return result.getNode();
}
return result.getNode();
@@
-104,7
+105,8
@@
abstract class AbstractGet extends AbstractSingletonNetconfOperation {
try {
return XML_OUTPUT_FACTORY.createXMLStreamWriter(result);
} catch (final XMLStreamException e) {
try {
return XML_OUTPUT_FACTORY.createXMLStreamWriter(result);
} catch (final XMLStreamException e) {
- throw new RuntimeException(e);
+ // FIXME: throw DocumentedException
+ throw new IllegalStateException(e);
}
}
}
}