Package org.keycloak.provider
Interface ExceptionConverter
-
- All Superinterfaces:
Provider,ProviderFactory<ExceptionConverter>
- All Known Implementing Classes:
JpaExceptionConverter,JpaMapExceptionConverter
public interface ExceptionConverter extends Provider, ProviderFactory<ExceptionConverter>
Use to unwrap exceptions specifically if there is an exception at JTA commit- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()This is called when the server shuts down.Throwableconvert(Throwable t)Return null if the provider doesn't handle this typedefault ExceptionConvertercreate(KeycloakSession session)default voidinit(Config.Scope config)Only called once when the factory is first created.default voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, getId, order
-
-
-
-
Method Detail
-
convert
Throwable convert(Throwable t)
Return null if the provider doesn't handle this type- Parameters:
t-- Returns:
-
create
default ExceptionConverter create(KeycloakSession session)
- Specified by:
createin interfaceProviderFactory<ExceptionConverter>
-
init
default void init(Config.Scope config)
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<ExceptionConverter>
-
postInit
default void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<ExceptionConverter>
-
close
default void close()
Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<ExceptionConverter>
-
-