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 Summary
-
Method Summary
-
Constructor Details
-
MCRJerseyExceptionMapper
public MCRJerseyExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<Exception>
-