Skip to content

Commit

Permalink
Sync documentation of main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 23, 2022
1 parent f6157a9 commit ada6df4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _versions/main/guides/rest-client-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,10 @@ A simple example of implementing such a `ResponseExceptionMapper` for the `Exten

[source, java]
----
public interface MyResponseExceptionMapper implements ResponseExceptionMapper<RuntimeException> {
public class MyResponseExceptionMapper implements ResponseExceptionMapper<RuntimeException> {
RuntimeException toThrowable(Response response) {
@Override
public RuntimeException toThrowable(Response response) {
if (response.getStatus() == 500) {
throw new RuntimeException("The remote service responded with HTTP 500");
}
Expand Down

0 comments on commit ada6df4

Please sign in to comment.