Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / netconf-monitoring / src / main / java / org / opendaylight / netconf / monitoring / GetSchema.java
index 84801b1476bed92a97613cd80e3fa8eba151cffc..c3527a29be17ad499e8c574615eee0b1e2823d96 100644 (file)
@@ -59,7 +59,7 @@ public class GetSchema extends AbstractSingletonNetconfOperation {
             final Map<String, String> errorInfo = Maps.newHashMap();
             errorInfo.put(DocumentedException.ErrorTag.OPERATION_FAILED.toString(), e.getMessage());
             LOG.warn("Rpc error: {}", DocumentedException.ErrorTag.OPERATION_FAILED, e);
-            throw new DocumentedException(e.getMessage(), DocumentedException.ErrorType.APPLICATION,
+            throw new DocumentedException(e.getMessage(), e, DocumentedException.ErrorType.APPLICATION,
                     DocumentedException.ErrorTag.OPERATION_FAILED,
                     DocumentedException.ErrorSeverity.ERROR, errorInfo);
         }