Class KeycloakMismatchedInputExceptionHandler

java.lang.Object
org.keycloak.services.error.KeycloakMismatchedInputExceptionHandler
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.MismatchedInputException>

@Provider public class KeycloakMismatchedInputExceptionHandler extends Object implements jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.MismatchedInputException>
Override explicitly added ExceptionMapper for handling MismatchedInputException in RestEasy Jackson
  • Constructor Details

    • KeycloakMismatchedInputExceptionHandler

      public KeycloakMismatchedInputExceptionHandler()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(com.fasterxml.jackson.databind.exc.MismatchedInputException exception)
      Return escaped original message
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.exc.MismatchedInputException>