Class ExceptionUtils

java.lang.Object
com.nt.udc.exceptions.ExceptionUtils

public final class ExceptionUtils extends Object
Contains some simple exception-related utilities.
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • throwableToString

      public static String throwableToString(Throwable e)
      Converts a Throwable to a String, pulling out some of the interesting Throwable information.
      Parameters:
      e - Throwable
      Returns:
      Throwable info, as a String object
    • stackTraceToString

      public static String stackTraceToString(Throwable e)
      Converts a stack trace from a Throwable to a String.
      Parameters:
      e - Throwable containing the stack trace
      Returns:
      stack trace as a String object