Code example for DefaultResponseErrorHandler

0
/** 
 *  
 * @author Brian 
 * @since 4.0 
 */ 
class FlickrErrorHandler extends DefaultResponseErrorHandler
{ 
 
    @Override 
    public void handleError(ClientHttpResponse response) throws IOExceptionMap<String, String> errorDetails = extractErrorDetailsFromResponse(response);
        if (errorDetails == null)
        { 
            handleUncategorizedError(response, errorDetails);
        } 
 
        handleFlickrError(response.getStatusCode(), errorDetails);
 
        // if not otherwise handled, do default handling and wrap with 
Connect your IDE to all the code out there  Get Codota for Java