From edc37657350ef04b1e41609fd4fa24c08955d48f Mon Sep 17 00:00:00 2001 From: Felipe Henrique Gross Windmoller Date: Sat, 21 May 2022 18:59:37 -0300 Subject: [PATCH] Fix Guide Rest Client Reactive Exception Handling --- docs/src/main/asciidoc/rest-client-reactive.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/rest-client-reactive.adoc b/docs/src/main/asciidoc/rest-client-reactive.adoc index 6734e6e34d19e..e83f6a8196ff7 100644 --- a/docs/src/main/asciidoc/rest-client-reactive.adoc +++ b/docs/src/main/asciidoc/rest-client-reactive.adoc @@ -649,9 +649,10 @@ A simple example of implementing such a `ResponseExceptionMapper` for the `Exten [source, java] ---- -public interface MyResponseExceptionMapper implements ResponseExceptionMapper { +public class MyResponseExceptionMapper implements ResponseExceptionMapper { - RuntimeException toThrowable(Response response) { + @Override + public RuntimeException toThrowable(Response response) { if (response.getStatus() == 500) { throw new RuntimeException("The remote service responded with HTTP 500"); }