Clean Up Code around List Nodes
[cps.git] / cps-service / src / main / java / org / onap / cps / spi / exceptions / DataNodeNotFoundException.java
index 848d569..b717a2b 100755 (executable)
@@ -28,6 +28,21 @@ public class DataNodeNotFoundException extends DataValidationException {
 
     private static final long serialVersionUID = 7786740001662205407L;
 
+    /**
+     * Constructor.
+     *
+     * @param dataspaceName         the name of the dataspace
+     * @param anchorName            the anchor name
+     * @param xpath                 datanode xpath
+     * @param additionalInformation additional information
+     */
+    public DataNodeNotFoundException(final String dataspaceName, final String anchorName, final String xpath,
+                                     final String additionalInformation) {
+        super("DataNode not found", String
+            .format("DataNode with xpath %s was not found for anchor %s and dataspace %s, %s.", xpath,
+                anchorName, dataspaceName, additionalInformation));
+    }
+
     /**
      * Constructor.
      *