Class KeycloakErrorHandler

java.lang.Object
org.keycloak.services.error.KeycloakErrorHandler
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Throwable>

@Provider public class KeycloakErrorHandler extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Throwable>
  • Field Details

  • Constructor Details

    • KeycloakErrorHandler

      public KeycloakErrorHandler()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(Throwable throwable)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<Throwable>
    • getResponse

      public static jakarta.ws.rs.core.Response getResponse(KeycloakSession session, Throwable throwable)