summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-04-03 16:33:10 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2018-04-03 16:33:10 +0200
commit81b0d89f8e9b788da56c9cea3b5cabb3d00c42dc (patch)
tree0a827855644c81fb5ae090441fdb34634c856860 /vespa-http-client
parenta3022c3b1fc8d6606b385dfd72011055d2743fdc (diff)
Expose response info from ServerResponseException
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/ServerResponseException.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/ServerResponseException.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/ServerResponseException.java
index 1800864cd90..ef41a04f7c7 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/ServerResponseException.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/ServerResponseException.java
@@ -27,6 +27,14 @@ public class ServerResponseException extends Exception {
this.responseString = responseString;
}
+ public int getResponseCode() {
+ return responseCode;
+ }
+
+ public String getResponseString() {
+ return responseString;
+ }
+
@Override
public String toString() {
if (responseCode > 0) {