public class DefaultResponseErrorHandler extends Object implements ResponseErrorHandler
ResponseErrorHandler interface
that throws WebClientErrorExceptions for HTTP 4xx responses
and WebServerErrorExceptions for HTTP 5xx responses.| Constructor and Description |
|---|
DefaultResponseErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(ClientHttpResponse response,
List<HttpMessageReader<?>> messageReaders)
Handle the error in the given response.
|
public void handleError(ClientHttpResponse response, List<HttpMessageReader<?>> messageReaders)
ResponseErrorHandlerHttpStatus of the response and
throw WebClientExceptions in case of errors.handleError in interface ResponseErrorHandler