A simple Jersey REST Service explaining how to handle exception in Restful Services
This Project explains how to handle exceptions in Restful Services using custom and inbuild exception handlers, examples for ExceptionMapper and WebApplicationException have been explained in this project.
For more details on different Exception handlers in JAX-RS, please refer the below, https://docs.oracle.com/javaee/7/api/javax/ws/rs/package-summary.html