Package ubic.gemma.rest.providers
Class EntityNotFoundExceptionMapper
- java.lang.Object
-
- ubic.gemma.rest.providers.AbstractExceptionMapper<EntityNotFoundException>
-
- ubic.gemma.rest.providers.EntityNotFoundExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<EntityNotFoundException>
@Provider @Component @Deprecated public class EntityNotFoundExceptionMapper extends AbstractExceptionMapper<EntityNotFoundException>
Deprecated.Phenocarta is scheduled for removalMapEntityNotFoundException
to a response containing a JSON error object.
-
-
Field Summary
-
Fields inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
log
-
-
Constructor Summary
Constructors Constructor Description EntityNotFoundExceptionMapper(String hostUrl, io.swagger.v3.oas.models.OpenAPI spec, BuildInfo buildInfo)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.Status
getStatus(EntityNotFoundException exception)
Deprecated.Translate the exception to an HTTPResponse.Status
.-
Methods inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
getResponseBuilder, getWellComposedErrorBody, logException, toResponse
-
-
-
-
Constructor Detail
-
EntityNotFoundExceptionMapper
@Autowired public EntityNotFoundExceptionMapper(@Value("${gemma.hosturl}") String hostUrl, io.swagger.v3.oas.models.OpenAPI spec, BuildInfo buildInfo)
Deprecated.
-
-
Method Detail
-
getStatus
protected javax.ws.rs.core.Response.Status getStatus(EntityNotFoundException exception)
Deprecated.Description copied from class:AbstractExceptionMapper
Translate the exception to an HTTPResponse.Status
.- Specified by:
getStatus
in classAbstractExceptionMapper<EntityNotFoundException>
-
-