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

Method decode

core/src/main/java/feign/InvocationContext.java:119–129  ·  view source on GitHub ↗
(Response response, Type returnType)

Source from the content-addressed store, hash-verified

117 }
118
119 private Object decode(Response response, Type returnType) {
120 try {
121 return decoder.decode(response, returnType);
122 } catch (final FeignException e) {
123 throw e;
124 } catch (final RuntimeException e) {
125 throw new DecodeException(response.status(), e.getMessage(), response.request(), e);
126 } catch (IOException e) {
127 throw errorReading(response.request(), response, e);
128 }
129 }
130
131 private Exception decodeError(String methodKey, Response response) {
132 try {

Callers 1

proceedMethod · 0.95

Calls 5

errorReadingMethod · 0.80
decodeMethod · 0.65
statusMethod · 0.45
getMessageMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected