After reading TaskOptions and Queue from the AppEngine Javadoc API, I can't find which exception gets thrown when the payload of the Task exceeds the limit of 100KB. Where could I find this information?
UPDATE: Filed开发者_Python百科 a request for a more specific exception.
Found my answer looking at the source code.
if (txn != null &&
bulkAddRequest.encodingSize() > QueueConstants.maxTransactionalRequestSizeBytes()) {
throw new IllegalArgumentException(
String.format("Transactional add may not be larger than %d bytes: %d bytes requested.",
QueueConstants.maxTransactionalRequestSizeBytes(),
bulkAddRequest.encodingSize()));
}
精彩评论