[jboss-user] [JBoss Web Services] - Re: Resteasy, handling and logging of WebApplicationException
Martin Kouba
do-not-reply at jboss.com
Mon Jul 30 15:22:12 EDT 2012
Martin Kouba [https://community.jboss.org/people/mkouba] created the discussion
"Re: Resteasy, handling and logging of WebApplicationException"
To view the discussion, visit: https://community.jboss.org/message/751066#751066
--------------------------------------------------------------
You can write you own ExceptionMapper for any exception, incl. the built-in WebApplicationException, and return any response you want (and skip RESTEasy logging). Have a look at javax.ws.rs.ext.ExceptionMapper in JAX-RS API. See also http://docs.jboss.org/resteasy/docs/2.3.4.Final/userguide/html/ExceptionHandling.html#ExceptionMappers http://docs.jboss.org/resteasy/docs/2.3.4.Final/userguide/html/ExceptionHandling.html#ExceptionMappers.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751066#751066]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120730/edc040b2/attachment-0001.html
More information about the jboss-user
mailing list