users@jersey.java.net

[Jersey] InvocationException

From: Luis Gervaso <luis_at_woorea.es>
Date: Mon, 11 Jun 2012 17:15:58 +0200

Hi,

What is the recommended way to handle InvocationException on the client
side?

Every Error Response comes to me with an error description in the response
entity.

1) If i handle on a filter:

throw readEntity(CustomException.class)

is wrapped with an InvocationException

2) if i handle on my client

I can not perform readEntity since I'm not in a request context

Any clues?

Regards


-- 
-------------------------------------------
Luis Alberto Gervaso Martin
Woorea Solutions, S.L
CEO & CTO
mobile: (+34) 627983344
luis@ <luis.gervaso_at_gmail.com>woorea.es