Class ExceptionPrinter
- java.lang.Object
-
- org.apache.uima.test.junit_extension.ExceptionPrinter
-
public class ExceptionPrinter extends java.lang.ObjectExceptionPrinter print out an exception with the place where the exception occurs
-
-
Constructor Summary
Constructors Constructor Description ExceptionPrinter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintException(java.lang.Exception ex)Print out exception stack trace and the place where the exception was thrown.static voidprintException(java.lang.StackTraceElement[] stackTrace, java.lang.String message)Print out exception stack trace and the place where the exception was thrown.static voidprintException(java.lang.String message)Print out the exception message and where the exception was thrown.
-
-
-
Method Detail
-
printException
public static void printException(java.lang.StackTraceElement[] stackTrace, java.lang.String message)Print out exception stack trace and the place where the exception was thrown.- Parameters:
stackTrace- a exception stack tracemessage- exception message
-
printException
public static void printException(java.lang.String message)
Print out the exception message and where the exception was thrown.- Parameters:
message- exception message
-
printException
public static void printException(java.lang.Exception ex)
Print out exception stack trace and the place where the exception was thrown.- Parameters:
ex- exception
-
-