That's correct, I'm using AppEngine to run a service registry that
proxies to other services.  I would like to differentiate between
services that are unavailable and services that are not responding
fast enough.

I've also noticed that if the service I'm calling from GAE is down, I
get an IOException, instead of a 404 in the response... which is what
I would get if I were calling the service from the browser.

On Oct 25, 1:22 pm, Don Schwarz <schwa...@google.com> wrote:
> 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 
> > athttp://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