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