Class MCRJerseyExceptionMapper

java.lang.Object
org.mycore.frontend.jersey.resources.MCRJerseyExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>

@Provider public class MCRJerseyExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Exception>
Handles jersey web application exceptions. By default this class just forwards the exception. Only if the request accepts HTML a custom error page is generated.
Author:
Matthias Eichner
  • Constructor Details

    • MCRJerseyExceptionMapper

      public MCRJerseyExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(Exception exc)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<Exception>