On 10/04/13 22:13, gdenton wrote:
I would like to handle all exceptions from a jax-rs service in one method.
I've looked at interceptors but have not had any luck. Note that the
ExceptionMapper will not work as that requires a concrete exception class.

Using cxf 2.7.3.
You can have ExceptionMapper<Throwable> or ExceptionMapper<RuntimeException> and it will catch all the exceptions...

Cheers, Sergey

Thanks.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Exception-handling-with-exception-super-class-in-jax-rs-tp5726143.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to