Class EntityNotFoundExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<ubic.gemma.core.association.phenotype.EntityNotFoundException>

    @Provider
    @Component
    @Deprecated
    public class EntityNotFoundExceptionMapper
    extends AbstractExceptionMapper<ubic.gemma.core.association.phenotype.EntityNotFoundException>
    Deprecated.
    Phenocarta is scheduled for removal
    Map EntityNotFoundException to a response containing a JSON error object.
    • Constructor Detail

      • EntityNotFoundExceptionMapper

        @Autowired
        public EntityNotFoundExceptionMapper​(@Value("${gemma.hosturl}")
                                             String hostUrl,
                                             io.swagger.v3.oas.models.OpenAPI spec,
                                             ubic.gemma.core.util.BuildInfo buildInfo)
        Deprecated.
    • Method Detail

      • getStatus

        protected javax.ws.rs.core.Response.Status getStatus​(ubic.gemma.core.association.phenotype.EntityNotFoundException exception)
        Deprecated.
        Description copied from class: AbstractExceptionMapper
        Translate the exception to an HTTP Response.Status.
        Specified by:
        getStatus in class AbstractExceptionMapper<ubic.gemma.core.association.phenotype.EntityNotFoundException>