Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / RestconfInvokeOperationsUtil.java
index c76c79d33f71e103e03db29fd02ed6a10f42421a..b5d44cd5ac344e481aea1ca187b91dc8e7a4ddab 100644 (file)
@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
  * Util class for rpc.
  *
  */
-public class RestconfInvokeOperationsUtil {
+public final class RestconfInvokeOperationsUtil {
 
     private static final Logger LOG = LoggerFactory.getLogger(RestconfInvokeOperationsUtil.class);
 
@@ -102,7 +102,7 @@ public class RestconfInvokeOperationsUtil {
         } catch (final CancellationException e) {
             final String errMsg = "The operation was cancelled while executing.";
             LOG.debug("Cancel RpcExecution: " + errMsg, e);
-            throw new RestconfDocumentedException(errMsg, ErrorType.RPC, ErrorTag.PARTIAL_OPERATION);
+            throw new RestconfDocumentedException(errMsg, ErrorType.RPC, ErrorTag.PARTIAL_OPERATION, e);
         }
     }