users@jersey.java.net

[Jersey] Re: Observing exceptions thrown by resources

From: Marshall Pierce <marshall_at_mpierce.org>
Date: Wed, 1 May 2013 11:40:50 -0700

On May 1, 2013, at 11:35 AM, algermissen1971 <algermissen1971_at_mac.com> wrote:

>
> On 01.05.2013, at 18:24, Marshall Pierce <marshall_at_mpierce.org> wrote:
>
>> I'd like to be able to observe all exceptions thrown by resource methods so that I can feed them into our metrics gathering service.
>
> Are you in an EE environment? You could use an interceptor then.
>
> jan

Nope, just embedded Jetty. I could use Guice AOP but I'd prefer something a little less magic-y (and more portable).

Marshall