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.mcs.exception.AccessDeniedOrObjectDoesNotExistException exception)
Maps
AccessDeniedOrObjectDoesNotExistException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException exception)
Maps
CannotModifyPersistentRepresentationException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationException exception)
Maps
CannotPersistEmptyRepresentationException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.DataSetAlreadyExistsException exception)
Maps
DataSetAlreadyExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException exception)
Maps
DataSetNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.FileAlreadyExistsException exception)
Maps
FileAlreadyExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.FileContentHashMismatchException exception)
Maps
FileContentHashMismatchException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.FileNotExistsException exception)
Maps
FileNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException exception)
Maps
ProviderNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.RecordNotExistsException exception)
Maps
RecordNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException exception)
Maps
RepresentationNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(RuntimeException exception)
Maps
RuntimeException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.VersionNotExistsException exception)
Maps
VersionNotExistsException to Response. |
javax.ws.rs.core.Response |
toResponse(javax.ws.rs.WebApplicationException exception)
Maps
WebApplicationException to Response. |
javax.ws.rs.core.Response |
toResponse(eu.europeana.cloud.service.mcs.exception.WrongContentRangeException exception)
Maps
WrongContentRangeException to Response. |
public javax.ws.rs.core.Response toResponse(eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException 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(eu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationException exception)
CannotPersistEmptyRepresentationException 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(eu.europeana.cloud.service.mcs.exception.DataSetAlreadyExistsException exception)
DataSetAlreadyExistsException to Response. Returns a response with HTTP status code 409 -
"Conflict" 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.mcs.exception.DataSetNotExistsException exception)
DataSetNotExistsException 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.mcs.exception.FileAlreadyExistsException exception)
FileAlreadyExistsException to Response. Returns a response with HTTP status code 409 -
"Conflict" 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.mcs.exception.FileNotExistsException exception)
FileNotExistsException 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.mcs.exception.RecordNotExistsException exception)
RecordNotExistsException 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.mcs.exception.RepresentationNotExistsException exception)
RepresentationNotExistsException 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.mcs.exception.VersionNotExistsException exception)
VersionNotExistsException 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.mcs.exception.FileContentHashMismatchException exception)
FileContentHashMismatchException to Response. Returns a response with HTTP status code 422 -
"Unprocessable Entity" 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.mcs.exception.WrongContentRangeException exception)
WrongContentRangeException to Response. Returns a response with HTTP status code 416 -
"Requested Range Not Satisfiable" 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.mcs.exception.ProviderNotExistsException exception)
ProviderNotExistsException 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.mcs.exception.AccessDeniedOrObjectDoesNotExistException exception)
AccessDeniedOrObjectDoesNotExistException to Response. Returns a response with HTTP status code 403 -
"Method not Allowed" and a ErrorInfo with exception details as a message body.exception - the exception to map to a responseCopyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.