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
  • 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 interface javax.ws.rs.ext.ExceptionMapper<de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException>