RestTemplate to determine
whether a particular response has an error or not.
| Modifier and Type | Method and Description |
|---|---|
| public void | handleError(ClientHttpResponse
the response with the error response)Handle the error in the given response. |
| public default void | handleError(URI
the request URL url, HttpMethod the HTTP method method, ClientHttpResponse the response with the error response)Alternative to |
| public boolean | Returns: true if the response indicates an error; false otherwisethe response to inspect response)Indicate whether the given response has any errors. |
| handleError | back to summary |
|---|---|
| public void handleError(ClientHttpResponse response) throws IOException Handle the error in the given response. This method is only called when
| |
| handleError | back to summary |
|---|---|
| public default void handleError(URI url, HttpMethod method, ClientHttpResponse response) throws IOException Alternative to
| |
| hasError | back to summary |
|---|---|
| public boolean hasError(ClientHttpResponse response) throws IOException Indicate whether the given response has any errors. Implementations will typically inspect the
| |