public class DefaultResponseErrorHandler extends Object implements ResponseErrorHandler
ResponseErrorHandler
interface
that throws WebClientErrorException
s for HTTP 4xx responses
and WebServerErrorException
s 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)
ResponseErrorHandler
HttpStatus
of the response and
throw WebClientException
s in case of errors.handleError
in interface ResponseErrorHandler