Package play.libs.exception
Class ExceptionUtils
java.lang.Object
play.libs.exception.ExceptionUtils
Copied from apache.commons.lang3 3.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Copied from apache.commons.lang3 3.7 ArrayUtils class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getStackFrames(Throwable throwable) Captures the stack trace associated with the specifiedThrowableobject, decomposing it into a list of stack frames.static StringgetStackTrace(Throwable throwable) Gets the stack trace from a Throwable as a String.
-
Field Details
-
EMPTY_STRING_ARRAY
Copied from apache.commons.lang3 3.7 ArrayUtils classAn empty immutable
Stringarray.
-
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
getStackTrace
Gets the stack trace from a Throwable as a String.The result of this method vary by JDK version as this method uses
Throwable.printStackTrace(java.io.PrintWriter). On JDK1.3 and earlier, the cause exception will not be shown unless the specified throwable alters printStackTrace.- Parameters:
throwable- theThrowableto be examined- Returns:
- the stack trace as generated by the exception's
printStackTrace(PrintWriter)method
-
getStackFrames
Captures the stack trace associated with the specifiedThrowableobject, decomposing it into a list of stack frames.The result of this method vary by JDK version as this method uses
Throwable.printStackTrace(java.io.PrintWriter). On JDK1.3 and earlier, the cause exception will not be shown unless the specified throwable alters printStackTrace.- Parameters:
throwable- theThrowableto examine, may be null- Returns:
- an array of strings describing each stack frame, never null
-