spring-framework / org.springframework.dao.support / PersistenceExceptionTranslationInterceptor / <init>

<init>

PersistenceExceptionTranslationInterceptor()

Create a new PersistenceExceptionTranslationInterceptor. Needs to be configured with a PersistenceExceptionTranslator afterwards.

See Also
#setPersistenceExceptionTranslator

PersistenceExceptionTranslationInterceptor(pet: PersistenceExceptionTranslator)

Create a new PersistenceExceptionTranslationInterceptor for the given PersistenceExceptionTranslator.

Parameters

pet - the PersistenceExceptionTranslator to use

PersistenceExceptionTranslationInterceptor(beanFactory: ListableBeanFactory)

Create a new PersistenceExceptionTranslationInterceptor, autodetecting PersistenceExceptionTranslators in the given BeanFactory.

Parameters

beanFactory - the ListableBeanFactory to obtaining all PersistenceExceptionTranslators from