Class EntityNotFoundExceptionMapper

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

    @Provider
    public class EntityNotFoundExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>
    Implementation of ExceptionMapper to send down a "404 Not Found" in the event unparsable JSON is received.
    • Constructor Detail

      • EntityNotFoundExceptionMapper

        public EntityNotFoundExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(javax.persistence.EntityNotFoundException exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>