Class MessageAwareWebClientErrorDecoder

    • Constructor Detail

      • MessageAwareWebClientErrorDecoder

        public MessageAwareWebClientErrorDecoder()
        Instantiates a new message aware web client error decoder.
      • MessageAwareWebClientErrorDecoder

        public MessageAwareWebClientErrorDecoder​(String errorCode)
        Instantiates a new message aware web client error decoder.
        Parameters:
        errorCode - the error code
      • MessageAwareWebClientErrorDecoder

        public MessageAwareWebClientErrorDecoder​(org.bremersee.exception.ExceptionParser<String> parser)
        Instantiates a new message aware web client error decoder.
        Parameters:
        parser - the parser
      • MessageAwareWebClientErrorDecoder

        public MessageAwareWebClientErrorDecoder​(org.bremersee.exception.ExceptionParser<String> parser,
                                                 String errorCode)
        Instantiates a new message aware web client error decoder.
        Parameters:
        parser - the parser
        errorCode - the error code
    • Method Detail

      • buildException

        public WebClientException buildException​(org.springframework.web.reactive.function.client.ClientResponse clientResponse,
                                                 String response)
        Description copied from interface: WebClientErrorDecoder
        Build exception.
        Parameters:
        clientResponse - the client response
        response - the response
        Returns:
        the exception