diff options
author | Plummer, Brittany <brittany.plummer@att.com> | 2019-05-10 09:52:31 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2019-05-10 09:52:41 -0400 |
commit | 252fe7c546853aaa0b8360cf837f0b653e624494 (patch) | |
tree | ee866d20b44402a04d720074b1d22b8ba6055612 /bpmn/MSOCommonBPMN/src/main/java/org/onap | |
parent | b9bb7f60815cd1e07b81d72b34ea1dcb4fa8d8c9 (diff) |
Created custom BadResponseException class
Created custom BadResponseException class
Change-Id: I9b7288c5c489e155a84f2b98956df8f3f8f53bb4
Issue-ID: SO-1864
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/java/org/onap')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/BadResponseException.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/BadResponseException.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/BadResponseException.java index 333d99ed2e..7b1066d48c 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/BadResponseException.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/BadResponseException.java @@ -22,10 +22,21 @@ package org.onap.so.client.exception; public class BadResponseException extends Exception { + String responseCode; + public BadResponseException() {} public BadResponseException(String message) { super(message); } + public BadResponseException(String message, String responseCode) { + super(message); + this.responseCode = responseCode; + } + + public String getResponseCode() { + return responseCode; + } + } |