users@jersey.java.net

Invoking ExceptionMapper within ExceptionMapper

From: Markus Karg <karg_at_quipsy.de>
Date: Fri, 3 Apr 2009 14:29:33 +0200

I wrote my own XYZException mapper. It returns different Responses
regarding on its own decision. That works well.

 

But in some cases, the XYZException is just a wrapper around another
(unkown) exception, found in e.getCause().

 

I'd like Jersey to check whether there is an exception mapper for the
cause.

 

How can this be done?

 

Thanks!

Markus