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.JtaTransactionWrapperto map an exception that occurs on commit.- Author:
- Bill Burke, Alexander Schwartz
 
- 
- 
Constructor SummaryConstructors Constructor Description JpaMapExceptionConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwableconvert(Throwable e)Return null if the provider doesn't handle this typeStringgetId()booleanisSupported()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ExceptionConverterclose, create, init, postInit
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
convertpublic Throwable convert(Throwable e) Description copied from interface:ExceptionConverterReturn null if the provider doesn't handle this type- Specified by:
- convertin interface- ExceptionConverter
- Returns:
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<ExceptionConverter>
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-