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

[jsr339-experts] Client exception handling issue

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 25 Aug 2011 09:46:56 -0400

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.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com