views:

41

answers:

1

The Google App Engine UrlFetchService has a setDeadline FetchOption which is suppose to raise an exception when tripped.

The app can specify the maximum amount of time to wait when it makes the call. If the maximum wait time is exceeded, the call raises an exception.

Which Exception?

If it is an IOException, how should I discriminate between a deadline timeout and other causes?

+1  A: 

A google.appengine.api.urlfetch.DownloadError will be raised.

Nick Johnson
Perhaps this error class is not defined on the java platform? DownloadError class is not found in the appengine-api-1.0-sdk.1.3.7.jar file. http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/package-tree.html
Stevko
Hey Nick J, can you please tell me if the DownloadError class is public or private and what class extends ?
Stevko