From 252fe7c546853aaa0b8360cf837f0b653e624494 Mon Sep 17 00:00:00 2001 From: "Plummer, Brittany" Date: Fri, 10 May 2019 09:52:31 -0400 Subject: Created custom BadResponseException class Created custom BadResponseException class Change-Id: I9b7288c5c489e155a84f2b98956df8f3f8f53bb4 Issue-ID: SO-1864 Signed-off-by: Benjamin, Max (mb388a) --- .../org/onap/so/client/exception/BadResponseException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bpmn/MSOCommonBPMN/src/main/java') 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; + } + } -- cgit 1.2.3-korg