Class DefaultWebClientErrorDecoder
java.lang.Object
org.bremersee.exception.webclient.DefaultWebClientErrorDecoder
- All Implemented Interfaces:
- Function<org.springframework.web.reactive.function.client.ClientResponse,,- reactor.core.publisher.Mono<? extends Throwable>> - WebClientErrorDecoder<RestApiResponseException>
public class DefaultWebClientErrorDecoder
extends Object
implements WebClientErrorDecoder<RestApiResponseException>
This web client error decoder generates a 
RestApiResponseException from the error
 response.- Author:
- Christian Bremer
- 
Constructor SummaryConstructorsConstructorDescriptionInstantiates a new web client error decoder.Instantiates a new web client error decoder.
- 
Method SummaryModifier and TypeMethodDescriptionbuildException(org.springframework.web.reactive.function.client.ClientResponse clientResponse, String response) Build exception.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bremersee.exception.webclient.WebClientErrorDecoderapply
- 
Constructor Details- 
DefaultWebClientErrorDecoderpublic DefaultWebClientErrorDecoder()Instantiates a new web client error decoder.
- 
DefaultWebClientErrorDecoderInstantiates a new web client error decoder.- Parameters:
- parser- the parser
 
 
- 
- 
Method Details- 
buildExceptionpublic RestApiResponseException buildException(org.springframework.web.reactive.function.client.ClientResponse clientResponse, String response) Description copied from interface:WebClientErrorDecoderBuild exception.- Specified by:
- buildExceptionin interface- WebClientErrorDecoder<RestApiResponseException>
- Parameters:
- clientResponse- the client response
- response- the response
- Returns:
- the exception
 
 
-