Class ExceptionUtil

java.lang.Object
com.github.tadukoo.util.ExceptionUtil

public final class ExceptionUtil extends Object
Util functions for dealing with Throwables and Exceptions.

It is named ExceptionUtil because it's more common to think of the term Exception than Throwable, though it does work for both.
Version:
Pre-Alpha
Author:
Logan Ferree (Tadukoo)
  • Constructor Details

    • ExceptionUtil

      private ExceptionUtil()
      Not allowed to create an ExceptionUtil
  • Method Details

    • getStackTraceAsString

      public static String getStackTraceAsString(Throwable t)
      Returns a String of the stack trace for the given Throwable. The String will be the equivalent of calling Throwable.printStackTrace().
      Parameters:
      t - The Throwable to get the stack trace of
      Returns:
      A String of the stack trace