MCPcopy Index your code
hub / github.com/OpenFeign/feign / errorReading

Method errorReading

core/src/main/java/feign/FeignException.java:179–187  ·  view source on GitHub ↗
(Request request, Response response, IOException cause)

Source from the content-addressed store, hash-verified

177 }
178
179 static FeignException errorReading(Request request, Response response, IOException cause) {
180 return new FeignException(
181 response.status(),
182 format("%s reading %s %s", cause.getMessage(), request.httpMethod(), request.url()),
183 request,
184 cause,
185 request.body(),
186 request.headers());
187 }
188
189 public static FeignException errorStatus(String methodKey, Response response) {
190 return errorStatus(methodKey, response, null, null);

Callers 4

handleResponseMethod · 0.80
decodeMethod · 0.80
executeAndDecodeMethod · 0.80

Calls 7

formatMethod · 0.80
httpMethodMethod · 0.80
urlMethod · 0.65
bodyMethod · 0.65
headersMethod · 0.65
statusMethod · 0.45
getMessageMethod · 0.45

Tested by 1