Code example for DefaultResponseErrorHandler

Methods: handleError

0
 
    private void handleUncategorizedError(ClientHttpResponse response, Map<String, String> errorDetails)
    { 
        try 
        { 
            super.handleError(response);
        } 
        catch (Exception e)
        { 
            if (errorDetails != null)
            { 
                throw new UncategorizedApiException(errorDetails.get("message"), e);
            } 
            else 
            { 
                throw new UncategorizedApiException("No error details from Facebook", e);
            } 
        } 
    }