Package org.hibernate.testing.util
Class ExceptionUtil
java.lang.Object
org.hibernate.testing.util.ExceptionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowableGet a specific cause.static ExceptionUtilstatic booleanWas the given exception caused by a SQL connection closestatic booleanWas the given exception caused by a SQL lock timeout?static ThrowableGet 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
-