PersistenceException is not catching HibernateException
Issue
Since PersistenceException is a parent of HibernateException a catch block like:
try {
thrown new HibernateException()
} catch (PersistenceException persistenceException) {
. . .
}
should catch HibernateException but it does not.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.