Class RestApiExceptionMapper
java.lang.Object
io.goobi.viewer.api.rest.exceptions.RestApiExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<RestApiException>
@Provider
public class RestApiExceptionMapper
extends Object
implements ExceptionMapper<RestApiException>
JAX-RS exception mapper that converts
RestApiException instances to JSON error responses with appropriate HTTP
status codes.- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RestApiExceptionMapper
public RestApiExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfaceExceptionMapper<RestApiException>
-