| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Class | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String[] | Returns: an array of Strings describing stack frames.a throwable)ThrowableCaptures the stack trace associated with this exception. |
| public static Throwable | |
| public static String | Returns: the stack trace as aStringa throwable)ThrowableGenerate string for specified exception and the cause of this exception (if any). |
| public static String | Returns: the stack trace as aStringa throwable, final boolean Throwableif printCascading)true will print all cascading exceptionsGenerate string for specified exception and if printCascading is true will print all cascading exceptions. |
| public static String | Returns: the stack trace as aStringa throwable, final int Throwablenumber of stack trace frames to show depth)Serialize the specified |
| public static String | Returns: the stack trace as aStringa throwable, final int Throwablenumber of stack trace frames to show depth, final boolean if printCascading)true will print all cascading exceptionsGenerate exception string for specified exception to specified depth and all Cascading exceptions if printCascading is true. |
| public static String | Returns: the stack trace as aStringa throwable, final int Throwablenumber of stack trace frames to show depth, final boolean if printCascading, final boolean true will print all cascading exceptionsif useReflection)true will use reflection to handle JDK1.4
nested exceptionsGenerate exception string for specified exception to specified depth and all Cascading exceptions if printCascading is true. |
| public static String[] | Returns: the resultant arraythe string to split string, final String the token to split on onToken)
Deprecated
This is an internal utility method that should not be used
Splits the string on every token into an array of stack frames.
|
| private static String[] | Returns: the resultant arraythe string to split string, final String the token to split on onToken)Splits the string on every token into an array of stack frames. |
| GET_CAUSE_NAME | back to summary |
|---|---|
| private static final String GET_CAUSE_NAME | |
| GET_CAUSE_PARAMTYPES | back to summary |
|---|---|
| private static final Class<T>[] GET_CAUSE_PARAMTYPES | |
| LINE_SEPARATOR | back to summary |
|---|---|
| private static final String LINE_SEPARATOR | |
| ExceptionUtil | back to summary |
|---|---|
| private ExceptionUtil() Private constructor to prevent instantiation. | |
| captureStackTrace | back to summary |
|---|---|
| public static String[] captureStackTrace(final Throwable throwable) Captures the stack trace associated with this exception. | |
| getCause | back to summary |
|---|---|
| public static Throwable getCause(final Throwable throwable, final boolean useReflection) Utility method to get cause of exception. | |
| printStackTrace | back to summary |
|---|---|
| public static String printStackTrace(final Throwable throwable) Generate string for specified exception and the cause of this exception (if any). | |
| printStackTrace | back to summary |
|---|---|
| public static String printStackTrace(final Throwable throwable, final boolean printCascading) Generate string for specified exception and if printCascading is true will print all cascading exceptions. | |
| printStackTrace | back to summary |
|---|---|
| public static String printStackTrace(final Throwable throwable, final int depth) Serialize the specified | |
| printStackTrace | back to summary |
|---|---|
| public static String printStackTrace(final Throwable throwable, final int depth, final boolean printCascading) Generate exception string for specified exception to specified depth and all Cascading exceptions if printCascading is true. | |
| printStackTrace | back to summary |
|---|---|
| public static String printStackTrace(final Throwable throwable, final int depth, final boolean printCascading, final boolean useReflection) Generate exception string for specified exception to specified depth
and all Cascading exceptions if printCascading is true. If useReflection
is true then the method will also attempt to use reflection to find a
method with signature | |
| splitString | back to summary |
|---|---|
| public static String[] splitString(final String string, final String onToken)
Deprecated This is an internal utility method that should not be used Splits the string on every token into an array of stack frames. | |
| splitStringInternal | back to summary |
|---|---|
| private static String[] splitStringInternal(final String string, final String onToken) Splits the string on every token into an array of stack frames. | |