public class ExceptionUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Throwable |
findCause(java.lang.Throwable t,
java.lang.Class<? extends java.lang.Throwable> causeClass)
Get a specific cause.
|
static ExceptionUtil |
getInstance() |
static boolean |
isConnectionClose(java.lang.Exception e)
Was the given exception caused by a SQL connection close
|
static boolean |
isSqlLockTimeout(java.lang.Exception e)
Was the given exception caused by a SQL lock timeout?
|
static java.lang.Throwable |
rootCause(java.lang.Throwable t)
Get the root cause of a particular
Throwable |
public static ExceptionUtil getInstance()
public static java.lang.Throwable rootCause(java.lang.Throwable t)
Throwable
t
- exceptionpublic static java.lang.Throwable findCause(java.lang.Throwable t, java.lang.Class<? extends java.lang.Throwable> causeClass)
t
- exceptioncauseClass
- cause typepublic static boolean isSqlLockTimeout(java.lang.Exception e)
e
- exceptionpublic static boolean isConnectionClose(java.lang.Exception e)
e
- exceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.