@Override public void onFailure( GoogleJsonError e, HttpHeaders responseHeaders) throws IOException { System.err.format("For label ids %s, got error: %s\n", missingLabelIds, e.toPrettyString()); }
@Override public void onFailure( GoogleJsonError e, HttpHeaders responseHeaders) throws IOException { System.err.format("For label %s, got error: %s\n", label, e.toPrettyString()); }
@Override public void onFailure( GoogleJsonError e, HttpHeaders responseHeaders) throws IOException { System.err.format("For message: %s, got error: %s\n", message.getId(), e.toPrettyString()); }
@Override public void onFailure( GoogleJsonError e, HttpHeaders responseHeaders) throws IOException { System.err.format("For message: %s, got error: %s\n", message.getId(), e.toPrettyString()); if (e.getCode() == TOO_MANY_CONCURRENT_REQUESTS_FOR_USER) { request.queue(batches.nextBatch, this); } }
} catch (GoogleJsonResponseException e) { LOG.warning("Could not subscribe " + WebUtil.buildUrl(req, "/notify") + " because " + e.getDetails().toPrettyString()); message = "Failed to subscribe. Check your log for details";
} catch (GoogleJsonResponseException e) { LOG.warning("Failed to create timeline subscription. Might be running on " + "localhost. Details:" + e.getDetails().toPrettyString());
} else if (parser.getCurrentToken() == JsonToken.START_OBJECT) { details = parser.parseAndClose(GoogleJsonError.class); detailString = details.toPrettyString();