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 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 interface jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException>