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 void
close()
This is called when the server shuts down.Throwable
convert(Throwable t)
Return null if the provider doesn't handle this typedefault ExceptionConverter
create(KeycloakSession session)
default void
init(Config.Scope config)
Only called once when the factory is first created.default void
postInit(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:
create
in interfaceProviderFactory<ExceptionConverter>
-
init
default void init(Config.Scope config)
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ExceptionConverter>
-
postInit
default void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<ExceptionConverter>
-
close
default void close()
Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<ExceptionConverter>
-
-