Interface WebClientErrorDecoder<E extends Throwable>
- Type Parameters:
E
- the exception type
- All Superinterfaces:
Function<org.springframework.web.reactive.function.client.ClientResponse,
reactor.core.publisher.Mono<? extends Throwable>>
- All Known Implementing Classes:
DefaultWebClientErrorDecoder
public interface WebClientErrorDecoder<E extends Throwable>
extends Function<org.springframework.web.reactive.function.client.ClientResponse,reactor.core.publisher.Mono<? extends Throwable>>
An error decoder for the
WebClient
.- Author:
- Christian Bremer
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<E>
apply
(org.springframework.web.reactive.function.client.ClientResponse clientResponse) buildException
(org.springframework.web.reactive.function.client.ClientResponse clientResponse, String response) Build exception.
-
Method Details
-
apply
default reactor.core.publisher.Mono<E> apply(org.springframework.web.reactive.function.client.ClientResponse clientResponse) -
buildException
E buildException(org.springframework.web.reactive.function.client.ClientResponse clientResponse, String response) Build exception.- Parameters:
clientResponse
- the client responseresponse
- the response- Returns:
- the exception
-