Package org.keycloak.services.error
Class KcUnrecognizedPropertyExceptionHandler
java.lang.Object
org.keycloak.services.error.KcUnrecognizedPropertyExceptionHandler
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
@Provider
public class KcUnrecognizedPropertyExceptionHandler
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
Override explicitly added ExceptionMapper for handling
UnrecognizedPropertyException
in RestEasy Jackson
org.jboss.resteasy.plugins.providers.jackson.UnrecognizedPropertyExceptionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception) Return escaped original message
-
Constructor Details
-
KcUnrecognizedPropertyExceptionHandler
public KcUnrecognizedPropertyExceptionHandler()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException exception) Return escaped original message- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>
-