Module MaterialFX

Class ExceptionUtils

java.lang.Object
io.github.palexdev.materialfx.utils.ExceptionUtils

public class ExceptionUtils extends Object
Little utils class to convert a throwable stack trace to a String.
  • Method Details

    • getStackTraceString

      public static String getStackTraceString(Throwable ex)
      Converts the given exception stack trace to a String by using a StringWriter and a PrintWriter.
    • formatException

      public static String formatException(Throwable ex)
      Returns a formatted string in the java style exception format.