Class WebApplicationExceptionMapper
java.lang.Object
io.goobi.viewer.api.rest.exceptions.WebApplicationExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<WebApplicationException>
@Provider
public class WebApplicationExceptionMapper
extends Object
implements ExceptionMapper<WebApplicationException>
JAX-RS exception mapper that catches general exceptions encountered during REST API calls and creates a JSON-formatted error response.
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WebApplicationExceptionMapper
public WebApplicationExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfaceExceptionMapper<WebApplicationException>
-
getRequestHeaders
getRequestHeaders.- Returns:
- all HTTP request headers as a semicolon-separated key-value string
-