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/

相关文章:

java - 如何在Tapestry中为Map创建bean编辑模型?

javascript - 部署后 GetcurrentPosition 不起作用

python - 使用 Python 的 Google App Engine 中的图像属性?

c++ - 我可以获得未处理(目标)C++ 异常的堆栈跟踪吗?

java - EntityManager createQuery 上的 QuerySyntaxException hibernate 无效路径

java - Hybris Commerce Cuppy 扩展安装失败

java - 实现 Web 客户端时出现 ClassNotFoundException

java - 如何从 Windows 10 运行 javadoc?

api - RESTful API 认证/安全

python - 在哪里可以找到 python 的内置类的方法和属性?