Package org.hibernate.testing.util
Class ExceptionUtil
java.lang.Object
org.hibernate.testing.util.ExceptionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Throwable
Get a specific cause.static ExceptionUtil
static boolean
Was the given exception caused by a SQL connection closestatic boolean
Was the given exception caused by a SQL lock timeout?static Throwable
Get the root cause of a particularThrowable
-
Method Details
-
getInstance
-
rootCause
Get the root cause of a particularThrowable
- Parameters:
t
- exception- Returns:
- exception root cause
-
findCause
Get a specific cause.- Parameters:
t
- exceptioncauseClass
- cause type- Returns:
- exception root cause
-
isSqlLockTimeout
Was the given exception caused by a SQL lock timeout?- Parameters:
e
- exception- Returns:
- is caused by a SQL lock timeout
-
isConnectionClose
Was the given exception caused by a SQL connection close- Parameters:
e
- exception- Returns:
- is caused by a SQL connection close
-