Class JsonMappingExceptionMapper
- java.lang.Object
-
- org.openmetadata.service.exception.JsonMappingExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
@Provider @Priority(1) public class JsonMappingExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
Dropwizard by default maps the JSON payload format issues (invalid URI etc.) violations to 400 Response with no error message. This exception mapper overrides that behavior by including ErrorMessage json in the response along with the error code.
-
-
Constructor Summary
Constructors Constructor Description JsonMappingExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetoResponse(com.fasterxml.jackson.databind.JsonMappingException exception)
-