forked from loafle/openapi-generator-original
add response headers to api exception (#12042)
This commit is contained in:
parent
4e16146638
commit
5cef7e613a
@ -1197,7 +1197,7 @@ public class ApiClient {
|
||||
try {
|
||||
Response response = call.execute();
|
||||
if (!response.isSuccessful()) {
|
||||
throw new ApiException(response.code(), response.message());
|
||||
throw new ApiException(response.code(), response.message(), response.headers().toMultimap(), null);
|
||||
}
|
||||
if (response.body() == null) {
|
||||
return null;
|
||||
|
@ -993,7 +993,7 @@ public class ApiClient {
|
||||
try {
|
||||
Response response = call.execute();
|
||||
if (!response.isSuccessful()) {
|
||||
throw new ApiException(response.code(), response.message());
|
||||
throw new ApiException(response.code(), response.message(), response.headers().toMultimap(), null);
|
||||
}
|
||||
if (response.body() == null) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user