jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Client exception handling issue

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 25 Aug 2011 16:57:49 +0200

I wonder what code you look at... InvocationException for sure does reference the HttpResponse:

http://java.net/projects/jax-rs-spec/sources/git/content/src/jax-rs-api/src/main/java/javax/ws/rs/client/InvocationException.java

Marek

On 08/25/2011 03:46 PM, Bill Burke wrote:
> There's a problem with these methods (and other's like it):
>
> <T> T get(Class<T> responseType) throws InvocationException;
>
> <T> T get(GenericType<T> responseType) throws InvocationException;
>
>
> Currently InvocationException doesn't have a reference to the HttpResponse. A user will many times be interested in the
> status code and sometimes even the representation of the failure.
>
>