diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2018-04-03 16:33:10 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2018-04-03 16:33:10 +0200 |
commit | 81b0d89f8e9b788da56c9cea3b5cabb3d00c42dc (patch) | |
tree | 0a827855644c81fb5ae090441fdb34634c856860 /vespa-http-client | |
parent | a3022c3b1fc8d6606b385dfd72011055d2743fdc (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.java | 8 |
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) { |