public class ThrowableTool
extends java.lang.Object
Constructor and Description |
---|
ThrowableTool() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertToString(java.lang.Throwable t)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static java.lang.String |
convertToString(java.lang.Throwable t,
int intMaxDepth)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static java.lang.StringBuffer |
convertToStringBuffer(java.lang.Throwable t)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static java.lang.StringBuffer |
convertToStringBuffer(java.lang.Throwable t,
int intMaxDepth)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static java.lang.StringBuilder |
convertToStringBuilder(java.lang.Throwable t)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static java.lang.StringBuilder |
convertToStringBuilder(java.lang.Throwable t,
int intMaxDepth)
Generates a detail, visible message according to a "Throwable", such as
an "Exception".
|
static void |
dealThrowable(java.lang.Throwable t)
Prints the message generated from incoming "Throwable".
|
static void |
dealThrowable(java.lang.Throwable t,
int intMaxDepth)
Prints the message generated from incoming "Throwable".
|
public static java.lang.StringBuffer convertToStringBuffer(java.lang.Throwable t)
t
- - Throwable to deal with.public static java.lang.StringBuffer convertToStringBuffer(java.lang.Throwable t, int intMaxDepth)
t
- - Throwable to deal with.intMaxDepth
- - Max cause depth to trace in the stack.public static java.lang.StringBuilder convertToStringBuilder(java.lang.Throwable t)
t
- - Throwable to deal with.public static java.lang.StringBuilder convertToStringBuilder(java.lang.Throwable t, int intMaxDepth)
t
- - Throwable to deal with.intMaxDepth
- - Max cause depth to trace in the stack.public static java.lang.String convertToString(java.lang.Throwable t)
t
- - Throwable to deal with.public static java.lang.String convertToString(java.lang.Throwable t, int intMaxDepth)
t
- - Throwable to deal with.intMaxDepth
- - Max cause depth to trace in the stack.public static void dealThrowable(java.lang.Throwable t)
t
- - Throwable to deal with.public static void dealThrowable(java.lang.Throwable t, int intMaxDepth)
t
- - Throwable to deal with.intMaxDepth
- - Max cause depth to trace in the stack.