@Override
public void handleError(final ClientHttpResponse response) throws IOException
{
- if (!HttpStatus.BAD_REQUEST.equals(response.getStatusCode()))
- {
- // We will only handle 400 BAD REQUEST
- LOG.debug("ignoring response with status-code {}.", response.getStatusCode());
- parent.handleError(response);
- return;
- }
-
+ GraphApiErrorHandler.handleError(parent, response);
+ }
+ public static void handleError(
+ final ResponseErrorHandler parent,
+ final ClientHttpResponse response
+ )
+ throws
+ IOException
+ {
if (response.getBody() == null)
{
// There is no body to interpret in the HTTP-message