From 9df8a09e7b2463c3d5fb7a25a0fda536e7868b74 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Fri, 26 Apr 2019 21:44:03 -0400 Subject: created new custom exception Added a new exception type for unexpected data results. Change-Id: I5d0a0ab5e744cd507fe21a58f14cb5f91abff2bf Issue-ID: SO-1819 Signed-off-by: Benjamin, Max (mb388a) --- .../so/client/exception/UnexpectedDataException.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java (limited to 'bpmn/MSOCommonBPMN/src/main/java') 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 index 0000000000..84cf491355 --- /dev/null +++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java @@ -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); + } + + +} -- cgit 1.2.3-korg