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 Type
    Method
    Description
    default 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.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      default reactor.core.publisher.Mono<E> apply(org.springframework.web.reactive.function.client.ClientResponse clientResponse)
      Specified by:
      apply in interface Function<org.springframework.web.reactive.function.client.ClientResponse,reactor.core.publisher.Mono<? extends Throwable>>
    • buildException

      E buildException(org.springframework.web.reactive.function.client.ClientResponse clientResponse, String response)
      Build exception.
      Parameters:
      clientResponse - the client response
      response - the response
      Returns:
      the exception