Class ExceptionPrinter
java.lang.Object
org.apache.uima.test.junit_extension.ExceptionPrinter
ExceptionPrinter print out an exception with the place where the exception occurs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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.
-
Constructor Details
-
ExceptionPrinter
public ExceptionPrinter()
-
-
Method Details
-
printException
Print out exception stack trace and the place where the exception was thrown.- Parameters:
stackTrace
- a exception stack tracemessage
- exception message
-
printException
Print out the exception message and where the exception was thrown.- Parameters:
message
- exception message
-
printException
Print out exception stack trace and the place where the exception was thrown.- Parameters:
ex
- exception
-