diff options
author | Boslet, Cory <cory.boslet@att.com> | 2019-04-26 21:44:03 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2019-04-26 21:44:13 -0400 |
commit | 9df8a09e7b2463c3d5fb7a25a0fda536e7868b74 (patch) | |
tree | ea7482e6cd36b26a75d69addeb6e870b718cd2f9 /bpmn/MSOCommonBPMN | |
parent | 0bb58cfbe91dd7b77178f775df16d873131eb1ef (diff) |
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) <mb388a@us.att.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/UnexpectedDataException.java | 17 |
1 files changed, 17 insertions, 0 deletions
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); + } + + +} |