spring-framework / org.springframework.dao.annotation / PersistenceExceptionTranslationAdvisor

PersistenceExceptionTranslationAdvisor

open class PersistenceExceptionTranslationAdvisor : AbstractPointcutAdvisor

Spring AOP exception translation aspect for use at Repository or DAO layer level. Translates native persistence exceptions into Spring's DataAccessException hierarchy, based on a given PersistenceExceptionTranslator.

Author
Rod Johnson

Author
Juergen Hoeller

Since
2.0

See Also
org.springframework.dao.DataAccessExceptionorg.springframework.dao.support.PersistenceExceptionTranslator

Constructors

<init>

PersistenceExceptionTranslationAdvisor(persistenceExceptionTranslator: PersistenceExceptionTranslator, repositoryAnnotationType: Class<out Annotation>)

Create a new PersistenceExceptionTranslationAdvisor.

Functions

getAdvice

open fun getAdvice(): Advice

getPointcut

open fun getPointcut(): Pointcut