@Provider public class EntityNotFoundExceptionMapper extends AbstractExceptionMapper<EntityNotFoundException>
EntityNotFoundException
to a response containing a JSON error object.Constructor and Description |
---|
EntityNotFoundExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response.Status |
getStatus(EntityNotFoundException exception)
Translate the exception to an HTTP
Response.Status . |
getWellComposedErrorBody, logException, toResponse
protected javax.ws.rs.core.Response.Status getStatus(EntityNotFoundException exception)
AbstractExceptionMapper
Response.Status
.getStatus
in class AbstractExceptionMapper<EntityNotFoundException>
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.