Class ContentExceptionMapper
java.lang.Object
io.goobi.viewer.api.rest.exceptions.ContentExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException>
@Provider
public class ContentExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException>
Copied from ContentServer to catch ContentServer exceptions.
- Author:
- Florian Alpers
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionContentExceptionMapper
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException e)
-
Constructor Details
-
ContentExceptionMapper
public ContentExceptionMapper() -
ContentExceptionMapper
public ContentExceptionMapper(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException e) - Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException>
-