java - URLFetchService 因超时而引发哪个异常?

标签 java google-app-engine exception urlfetch

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/

相关文章:

android - Google Cloud Endpoints 应用的 userinfo.email 弃用的迁移路径是什么?

java - 从构造函数抛出异常?

java - 在company_repository 的更新间隔已过或强制更新之前,不会尝试解决问题

java - 强制 JTextField 在出现时选择其所有内容

java - Google App Engine - 如何将对象返回到我的 servlet?

java - 为什么 "try without catch"不满足异常处理的 "handle or declare law"?

java - 如何判断在 IntelliJ 中调试时是否触发了 Java 异常?

java - Jspresso:集合内容更改时未调用监听器

java - 两个操作如何在if-else if语句中?

google-app-engine - App Engine 上的 Pagespeed.. 很多问题。我错过了什么吗?.. [php, appengine]