To execute a request, call {@link #execute(JsonFactory,HttpRequest)}. This will throw a {@link GoogleJsonResponseException} on an error response. To get the structured details, use{@link #getDetails()}.
static void executeShowingError(JsonFactory factory, HttpRequest request) throws IOException { try { GoogleJsonResponseException.execute(factory, request); } catch (GoogleJsonResponseException e) { System.err.println(e.getDetails()); } }@since 1.6 @author Yaniv Inbar
|
|