Package org.mycore.restapi.v1.errors
Class MCRRestAPIExceptionMapper
java.lang.Object
org.mycore.restapi.v1.errors.MCRRestAPIExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<MCRRestAPIException>
public class MCRRestAPIExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<MCRRestAPIException>
maps a REST API exception to a proper response with message as JSON output
- Version:
- $Revision: $ $Date: $
- Author:
- Robert Stephan
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MCRRestAPIExceptionMapper
public MCRRestAPIExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<MCRRestAPIException>
-