Jersey - exception mapping not working
see chapter 3.3.4 in the JAX-RS spec:...
Unchecked exceptions and errors MUST be re-thrown and allowed to
propagate to the underlying
container
...
You can create your custom exception or throw WebApplicationException
directly (see
http://jsr311.java.net/nonav/javadoc/javax/ws/rs/WebApplicationException.html)
- you can set the response there.
Read full article from Jersey - exception mapping not working
No comments:
Post a Comment