|
From: Adam J. <Ada...@ge...> - 2008-11-01 05:59:48
|
Quick question,
I¹m trying to provide an ExceptionMapper for various exceptions (the most
notable being a NumberFormatException) that are occuring prior to an actual
resource method invocation.
at
org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImp
l.java:68)
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:74
)
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:19
7)
With beta8, it looks like exceptions thrown from within a resource are
subject to an ExceptionMapper lookup, but anything else is just
automatically logged from within the SynchronousDispatcher.
Two motivations for this:
1. To avoid clogging up logs with useless (IMO) stacktraces related to
careless user requests.
2. To avoid leaking details of the resource implementation to callers (ie. I
wouldn¹t expect the callers to know the resource name and method, but the
full signature is returned in the error message).
Thoughts?
Thanks,
Adam
|