DeadlineExceededException isn't appropriate, as that exception
indicates that your overall request deadline has passed and you need
to finish what you are doing and return from the request.

java.io.IOException seems correct for this.  Are you just trying to
distinguish timeouts from other types of connection errors (e.g. the
remote server is slow vs. the remote server is down completely) ?  I
don't know how reliably we can tell the difference.

-- Don

On Mon, Oct 25, 2010 at 3:05 PM, hector <hrov...@gmail.com> wrote:
> Would it be possible to throw DeadlineExceededException from the
> URLFetchService instead of IOException?
>
> java.io.IOException: Timeout while fetching: https://...
>        at
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java:
> 108)
>        at
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:
> 39)
>
> Maybe I'm expecting the wrong behavior from the API.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to