|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trendmicro.grid.acl.l0.util.ExceptionsUtil
public final class ExceptionsUtil
Is a utility class that offers methods to analyze exception chains in the context of 'ws-server'.
| Field Summary | |
|---|---|
static Set<String> |
CONCURRENT_ACCESS_CAUSES
Lists all exception class names that may be thrown when a concurrent access caused the failure of writing into the database. |
static Set<String> |
INVALID_DB_STATE_CAUSES
Lists all exception class names that may be thrown when a the DB connection is within an invalid state (e.g. |
| Method Summary | |
|---|---|
static boolean |
isCausedByInvalidDbState(Throwable throwable)
Returns true if the given throwable was caused by an invalid db connection state. |
static boolean |
isOrContainsCause(Throwable throwable,
Collection<String> classNames)
Returns true if the throwable or one if its causes matches the given classNames. |
static boolean |
isOrContainsCause(Throwable throwable,
String... classNames)
Returns true if the throwable or one if its causes matches the given classNames. |
static boolean |
isPossiblyCausedByConcurrentAccess(Throwable throwable)
Returns true if the given throwable could possibly been caused by a concurrent modification inside the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Set<String> CONCURRENT_ACCESS_CAUSES
public static final Set<String> INVALID_DB_STATE_CAUSES
| Method Detail |
|---|
public static boolean isPossiblyCausedByConcurrentAccess(Throwable throwable)
throwable - the throwable to test.
public static boolean isCausedByInvalidDbState(Throwable throwable)
throwable - the throwable to test.
public static boolean isOrContainsCause(Throwable throwable,
String... classNames)
throwable - the throwable to test.classNames - the names to of the expected exceptions.
public static boolean isOrContainsCause(Throwable throwable,
Collection<String> classNames)
throwable - the throwable to test.classNames - the names to of the expected exceptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||