org.apache.uima.test.junit_extension
Class ExceptionPrinter

java.lang.Object
  extended by org.apache.uima.test.junit_extension.ExceptionPrinter

public class ExceptionPrinter
extends java.lang.Object

ExceptionPrinter print out an exception with the place where the exception occours


Constructor Summary
ExceptionPrinter()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionPrinter

public ExceptionPrinter()
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 trace
message - 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


Copyright © 2012. All Rights Reserved.