Class NotFoundExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.NotFoundException>

    @Provider
    public class NotFoundExceptionMapper
    extends AbstractExceptionMapper<javax.ws.rs.NotFoundException>
    This mapper ensures that raised NotFoundException throughout the API contain well-formed ResponseErrorObject entity. Normally, this would be handled by WebApplicationExceptionMapper, but we also want to expose the stack trace in the case of a missing entity.
    Author:
    poirigui