users@jersey.java.net

Re: [Jersey] Jersey and runtime exception handling

From: Alexandru Popescu ☀ <the.mindstorm.mailinglist_at_gmail.com>
Date: Wed, 1 Sep 2010 09:48:26 +0300

Since it pretty much got Paul's blessing, I'd like to point you to my
blog post describing a complete solution for dealing with server side
errors and exceptions:
http://jots.mypopescu.com/post/1031879539/my-experience-with-jersey-jax-rs

As I've mentioned in the post if you are interested in that solution
please do let me know and I'll do my best to find a away to share it
with the community. Paul mentioned in a comment that it might even be
interesting to add that to the Jersey itself, but most probably that
would take a while.

hth,

:- alex

On Wednesday, September 1, 2010, DaHoopster <hwang_at_myvest.com> wrote:
>
> I am developing web services using jersey. I am wondering if there is an
> exception interception mechanism that can catch all the runtime exceptions
> so that I can customize what will be returned. In my case, I would like to
> return XML that represents the exception/error.
>
> I could do a try catch block for each service I will write, but it seems
> very tedious...
>
> Many thanks...
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Jersey-and-runtime-exception-handling-tp5484867p5484867.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>