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 Details

    • DefaultWebClientErrorDecoder

      public DefaultWebClientErrorDecoder()
      Instantiates a new web client error decoder.
    • DefaultWebClientErrorDecoder

      public DefaultWebClientErrorDecoder(RestApiExceptionParser parser)
      Instantiates a new web client error decoder.
      Parameters:
      parser - the parser
  • Method Details