feat: json解析异常抛出数据详情

main
13009 2024-08-07 15:06:57 +08:00
parent aea762eedc
commit 3adc99b701
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class HttpResponse<T> {
return new HttpResponse<>(originalResponse.getHttpRequest(), originalResponse.getHttpHeaders(),
responseBody, serviceResponse, originalBody);
} catch (JsonSyntaxException e) {
throw new ApiClientException("解析JSON数据失败", e);
throw new ApiClientException(String.format("解析JSON数据失败:%s", Strings.toStr(originalResponse.getBody())), e);
}
}
}