Skip to content

Commit 0478424

Browse files
committed
Corrected ErrorDecoder sample docs
1 parent dacc707 commit 0478424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/main/java/feign/codec/ErrorDecoder.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* public Exception decode(String methodKey, Response response) {
4646
* if (response.status() == 400)
4747
* throw new IllegalArgumentException("bad zone name");
48-
* return ErrorDecoder.DEFAULT.decode(methodKey, request, response);
48+
* return new ErrorDecoder.Default().decode(methodKey, request, response);
4949
* }
5050
*
5151
* }

0 commit comments

Comments
 (0)