created new custom exception 53/86453/1
authorBoslet, Cory <cory.boslet@att.com>
Sat, 27 Apr 2019 01:44:03 +0000 (21:44 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Sat, 27 Apr 2019 01:44:13 +0000 (21:44 -0400)
Added a new exception type for unexpected data results.

Change-Id: I5d0a0ab5e744cd507fe21a58f14cb5f91abff2bf
Issue-ID: SO-1819
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java [new file with mode: 0644]

diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java
new file mode 100644 (file)
index 0000000..84cf491
--- /dev/null
@@ -0,0 +1,17 @@
+package org.onap.so.client.exception;
+
+
+public class UnexpectedDataException extends Exception {
+
+    public UnexpectedDataException() {}
+
+    public UnexpectedDataException(String message, String system) {
+        super("Unexpected data found in " + system + ". " + message);
+    }
+
+    public UnexpectedDataException(String message) {
+        super("Unexpected data found. " + message);
+    }
+
+
+}