From 2b7d23c2ffa067732df1ecc3879d252646dad2da Mon Sep 17 00:00:00 2001 From: "Rishi.Chail" Date: Wed, 14 Apr 2021 00:51:44 +0100 Subject: Get Data under anchor using single root Issue-ID: CPS-325 Signed-off-by: Rishi.Chail Change-Id: Id8da3d767199c5767c625b55d175ac6791dcca48 --- .../onap/cps/spi/exceptions/DataNodeNotFoundException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) mode change 100644 => 100755 cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundException.java (limited to 'cps-service/src/main/java/org') diff --git a/cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundException.java b/cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundException.java old mode 100644 new mode 100755 index 125b93d70a..6e7ac3b897 --- a/cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundException.java +++ b/cps-service/src/main/java/org/onap/cps/spi/exceptions/DataNodeNotFoundException.java @@ -39,4 +39,15 @@ public class DataNodeNotFoundException extends DataValidationException { .format("DataNode with xpath %s was not found for anchor %s and dataspace %s.", xpath, anchorName, dataspaceName)); } + + /** + * Constructor. + * + * @param dataspaceName the name of the dataspace + * @param anchorName the anchor name + */ + public DataNodeNotFoundException(final String dataspaceName, final String anchorName) { + super("DataNode not found", String.format( + "DataNode not found for anchor %s and dataspace %s.", anchorName, dataspaceName)); + } } -- cgit 1.2.3-korg