Class ExceptionPrinter


  • public class ExceptionPrinter
    extends Object
    ExceptionPrinter print out an exception with the place where the exception occurs
    • Constructor Detail

      • ExceptionPrinter

        public ExceptionPrinter()
    • Method Detail

      • printException

        public static void printException​(StackTraceElement[] stackTrace,
                                          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​(String message)
        Print out the exception message and where the exception was thrown.
        Parameters:
        message - exception message
      • printException

        public static void printException​(Exception ex)
        Print out exception stack trace and the place where the exception was thrown.
        Parameters:
        ex - exception