Package org.keycloak.services.error
Class KeycloakErrorHandler
- java.lang.Object
-
- org.keycloak.services.error.KeycloakErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_RESPONSE_TEXT
static String
UNCAUGHT_SERVER_ERROR_TEXT
-
Constructor Summary
Constructors Constructor Description KeycloakErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.core.Response
getResponse(KeycloakSession session, Throwable throwable)
javax.ws.rs.core.Response
toResponse(Throwable throwable)
-
-
-
Field Detail
-
UNCAUGHT_SERVER_ERROR_TEXT
public static final String UNCAUGHT_SERVER_ERROR_TEXT
- See Also:
- Constant Field Values
-
ERROR_RESPONSE_TEXT
public static final String ERROR_RESPONSE_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(Throwable throwable)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<Throwable>
-
getResponse
public static javax.ws.rs.core.Response getResponse(KeycloakSession session, Throwable throwable)
-
-