Modify Java ApiException to have a more informative message. (#14154)

* Modify ApiException to have a more informative message.

* Address comments.
This commit is contained in:
Brendan Burns
2022-12-04 22:16:50 -08:00
committed by GitHub
parent 94dccae82d
commit d6e7f70cb4
11 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ public class ApiException extends Exception {
}
public ApiException(int code, Map<String, List<String>> responseHeaders, String responseBody) {
this((String) null, (Throwable) null, code, responseHeaders, responseBody);
this(code + " " + responseBody, (Throwable) null, code, responseHeaders, responseBody);
}
public ApiException(int code, String message) {