public class UnitedExceptionMapper extends Object
Response.| Constructor and Description |
|---|
UnitedExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.dps.exception.AccessDeniedOrTopologyDoesNotExistException exception)
Maps
AccessDeniedOrTopologyDoesNotExistException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.dps.service.utils.validation.DpsTaskValidationException exception) |
javax.ws.rs.core.Response |
toResponse(RuntimeException exception)
Maps
RuntimeException to Response. |
javax.ws.rs.core.Response |
toResponse(TaskSubmissionException exception) |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.dps.exception.TopologyAlreadyExistsException exception)
Maps
CannotModifyPersistentRepresentationException to Response. |
javax.ws.rs.core.Response |
toResponse(javax.ws.rs.WebApplicationException exception)
Maps
WebApplicationException to Response. |
public javax.ws.rs.core.Response toResponse(eu.europeana.cloud.service.dps.exception.TopologyAlreadyExistsException exception)
CannotModifyPersistentRepresentationException to Response. Returns a response with HTTP
status code 405 - "Method Not Allowed" and a ErrorInfo with exception details as a message body.exception - the exception to map to a responsepublic javax.ws.rs.core.Response toResponse(RuntimeException exception)
RuntimeException to Response. Returns a response with HTTP status code 500 -
"Internal Server Error" and a ErrorInfo with exception details as a message body.exception - the exception to map to a responsepublic javax.ws.rs.core.Response toResponse(javax.ws.rs.WebApplicationException exception)
WebApplicationException to Response. Returns a response with from a given exception and a
ErrorInfo with exception details as a message body.exception - the exception to map to a responsepublic javax.ws.rs.core.Response toResponse(eu.europeana.cloud.service.dps.exception.AccessDeniedOrTopologyDoesNotExistException exception)
AccessDeniedOrTopologyDoesNotExistException to Response. Returns a response with HTTP status code 404 -
"Not Found" and a ErrorInfo with exception details as a message body.exception - the exception to map to a responsepublic javax.ws.rs.core.Response toResponse(eu.europeana.cloud.service.dps.service.utils.validation.DpsTaskValidationException exception)
public javax.ws.rs.core.Response toResponse(TaskSubmissionException exception)
Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.