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("facebook", errorDetails.get("message"), e);
			} else { 
				throw new UncategorizedApiException("facebook", "No error details from Facebook", e);
			} 
		} 
	} 
 
	/* 
	 * Attempts to extract Facebook error details from the response. 
	 * Returns null if the response doesn't match the expected JSON error response. 
	 */ 
	@SuppressWarnings("unchecked") 
Contextual code suggestions in your IDE  Get Codota for Java