public class ExceptionPrinter
extends java.lang.Object
Constructor and Description |
---|
ExceptionPrinter() |
Modifier and Type | Method and Description |
---|---|
static void |
printException(java.lang.Exception ex)
Print out exception stack trace and the place where the exception was thrown.
|
static void |
printException(java.lang.StackTraceElement[] stackTrace,
java.lang.String message)
Print out exception stack trace and the place where the exception was thrown.
|
static void |
printException(java.lang.String message)
Print out the exception message and where the exception was thrown.
|
public static void printException(java.lang.StackTraceElement[] stackTrace, java.lang.String message)
stackTrace
- a exception stack tracemessage
- exception messagepublic static void printException(java.lang.String message)
message
- exception messagepublic static void printException(java.lang.Exception ex)
ex
- exceptionCopyright © 2012. All Rights Reserved.