diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-03-01 13:47:39 +0100 |
---|---|---|
committer | dbmeneses <duarte.meneses@sonarsource.com> | 2017-03-01 17:21:11 +0100 |
commit | 9c74dc7710f74e5b60beefdb6949a022a5ed2c6a (patch) | |
tree | 07d8a047363543c19d60d91c82705107e95bd5cd /sonar-ws | |
parent | c723b844bed1ef2afdc3f5e5779f99fe598b6ac0 (diff) | |
download | sonarqube-9c74dc7710f74e5b60beefdb6949a022a5ed2c6a.tar.gz sonarqube-9c74dc7710f74e5b60beefdb6949a022a5ed2c6a.zip |
SONAR-8783 Improve display of error when uploading scanner report
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/HttpException.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpException.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpException.java index c1ae118726c..d456faeb473 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpException.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpException.java @@ -26,11 +26,17 @@ public class HttpException extends RuntimeException { private final String url; private final int code; + private final String content; public HttpException(String url, int code, String content) { super(String.format("Error %d on %s : %s", code, url, content)); this.url = url; this.code = code; + this.content = content; + } + + public String content() { + return content; } public String url() { |