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 public class UnhandledExceptionMapper extends AbstractExceptionMapper<Throwable>
Render unhandled exceptions. TheRequestExceptionLoggerdoes not always work reliably, and more than often the exception is caught instead by the configured JSP error page.
-
-
Constructor Summary
Constructors Constructor Description UnhandledExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.StatusgetStatus(Throwable exception)Translate the exception to an HTTPResponse.Status.protected booleanlogException()Indicate if the exception should be logged.-
Methods inherited from class ubic.gemma.rest.providers.AbstractExceptionMapper
getWellComposedErrorBody, toResponse
-
-
-
-
Method Detail
-
getStatus
protected javax.ws.rs.core.Response.Status getStatus(Throwable exception)
Description copied from class:AbstractExceptionMapperTranslate the exception to an HTTPResponse.Status.- Specified by:
getStatusin classAbstractExceptionMapper<Throwable>
-
logException
protected boolean logException()
Description copied from class:AbstractExceptionMapperIndicate if the exception should be logged.- Overrides:
logExceptionin classAbstractExceptionMapper<Throwable>
-
-