From: Boslet, Cory Date: Sat, 27 Apr 2019 01:44:03 +0000 (-0400) Subject: created new custom exception X-Git-Tag: 1.5.2~384^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F86453%2F1;p=so.git 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) --- 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); + } + + +}