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