users@jersey.java.net

swallowing stack traces

From: Michael Mogley <mrrubato_at_gmail.com>
Date: Tue, 30 Mar 2010 14:18:51 -0700

Is there a way I can prevent Jersey from logging business-level exceptions?
For example, I have several cases where I’m using an ExceptionMapper to
throw a NotFoundException when a POST operation attempts to pull a
nonexistent persistent entity as part of its internal logic. I do not want
to see the stack trace for this exception. Is there a way to configure
Jersey to only log stack for non-business-level exceptions?

Michael