Class JpaMapExceptionConverter
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.hibernate.JpaMapExceptionConverter
-
- All Implemented Interfaces:
EnvironmentDependentProviderFactory
,ExceptionConverter
,Provider
,ProviderFactory<ExceptionConverter>
public class JpaMapExceptionConverter extends Object implements ExceptionConverter, EnvironmentDependentProviderFactory
This is needed for example byorg.keycloak.transaction.JtaTransactionWrapper
to map an exception that occurs on commit.- Author:
- Bill Burke, Alexander Schwartz
-
-
Constructor Summary
Constructors Constructor Description JpaMapExceptionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
convert(Throwable e)
Return null if the provider doesn't handle this typeString
getId()
boolean
isSupported()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.provider.ExceptionConverter
close, create, init, postInit
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Method Detail
-
convert
public Throwable convert(Throwable e)
Description copied from interface:ExceptionConverter
Return null if the provider doesn't handle this type- Specified by:
convert
in interfaceExceptionConverter
- Returns:
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory<ExceptionConverter>
-
isSupported
public boolean isSupported()
- Specified by:
isSupported
in interfaceEnvironmentDependentProviderFactory
- Returns:
true
if the provider is supported and should be available,false
otherwise
-
-