Class NotFoundExceptionMapper

java.lang.Object
ubic.gemma.rest.providers.AbstractExceptionMapper<javax.ws.rs.NotFoundException>
ubic.gemma.rest.providers.NotFoundExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.NotFoundException>

@Provider @Component 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