From ada6df46ec79b70ba2f861b28f530d81175aa2a1 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 23 May 2022 01:57:28 +0000 Subject: [PATCH] Sync documentation of main branch --- _versions/main/guides/rest-client-reactive.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_versions/main/guides/rest-client-reactive.adoc b/_versions/main/guides/rest-client-reactive.adoc index 6734e6e34d..e83f6a8196 100644 --- a/_versions/main/guides/rest-client-reactive.adoc +++ b/_versions/main/guides/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"); }