Package ubic.gemma.rest.providers
Class MalformedArgExceptionMapper
- java.lang.Object
-
- ubic.gemma.rest.providers.AbstractExceptionMapper<MalformedArgException>
-
- ubic.gemma.rest.providers.MalformedArgExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<MalformedArgException>
@Provider @Component public class MalformedArgExceptionMapper extends AbstractExceptionMapper<MalformedArgException>
-
-
Constructor Summary
Constructors Constructor Description MalformedArgExceptionMapper(io.swagger.v3.oas.models.OpenAPI spec, BuildInfo buildInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.Status
getStatus(MalformedArgException exception)
Translate the exception to an HTTPResponse.Status
.protected WellComposedErrorBody
getWellComposedErrorBody(MalformedArgException exception)
Obtain aWellComposedErrorBody
for the exception.-
Methods inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
getResponseBuilder, logException, toResponse
-
-
-
-
Constructor Detail
-
MalformedArgExceptionMapper
@Autowired public MalformedArgExceptionMapper(io.swagger.v3.oas.models.OpenAPI spec, BuildInfo buildInfo)
-
-
Method Detail
-
getStatus
protected javax.ws.rs.core.Response.Status getStatus(MalformedArgException exception)
Description copied from class:AbstractExceptionMapper
Translate the exception to an HTTPResponse.Status
.- Specified by:
getStatus
in classAbstractExceptionMapper<MalformedArgException>
-
getWellComposedErrorBody
protected WellComposedErrorBody getWellComposedErrorBody(MalformedArgException exception)
Description copied from class:AbstractExceptionMapper
Obtain aWellComposedErrorBody
for the exception.- Overrides:
getWellComposedErrorBody
in classAbstractExceptionMapper<MalformedArgException>
-
-