Package ubic.gemma.rest.providers
Class UnhandledExceptionMapper
- java.lang.Object
-
- ubic.gemma.rest.providers.AbstractExceptionMapper<Throwable>
-
- ubic.gemma.rest.providers.UnhandledExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>
@Provider @Component public class UnhandledExceptionMapper extends AbstractExceptionMapper<Throwable>
Render unhandled exceptions.
-
-
Field Summary
-
Fields inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
log
-
-
Constructor Summary
Constructors Constructor Description UnhandledExceptionMapper(String hostUrl, 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(Throwable exception)
Translate the exception to an HTTPResponse.Status
.-
Methods inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
getResponseBuilder, getWellComposedErrorBody, toResponse
-
-
-
-
Method Detail
-
getStatus
protected javax.ws.rs.core.Response.Status getStatus(Throwable exception)
Description copied from class:AbstractExceptionMapper
Translate the exception to an HTTPResponse.Status
.- Specified by:
getStatus
in classAbstractExceptionMapper<Throwable>
-
-