Google App Engine UrlFetchService 有一个 setDeadline FetchOption,假设在触发时引发异常。
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.
哪个异常(exception)?
如果是 IOException,我应该如何区分截止时间超时和其他原因?
最佳答案
将会引发 google.appengine.api.urlfetch.DownloadError。
关于java - URLFetchService 因超时而引发哪个异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3876876/