forked from loafle/openapi-generator-original
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:
@@ -99,7 +99,7 @@ public class ApiException extends Exception {
|
||||
* @param responseBody the response body
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user