Hi
On 25/08/11 14:46, 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.
>
+1. In CXF we have ClientWebApplicationException and
ServerWebApplicationException. The former is thrown due to connection or
deserialization failures, ex, no reader has been found. The latter
encapsulates a server failure amd indeed it provides an access to the
underlying response.
>
--
Sergey Beryozkin
http://sberyozkin.blogspot.com
Talend - http://www.talend.com