Created custom BadResponseException class
Change-Id: I9b7288c5c489e155a84f2b98956df8f3f8f53bb4
Issue-ID: SO-1864
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
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;
+ }
+
}