Class Debug

java.lang.Object
se.datadosen.util.Debug

public class Debug
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Debug()  
  • Method Summary

    Modifier and Type Method Description
    static void log​(java.lang.String s)
    Log to stdout if debug mode is activated
    static void logErr​(java.lang.Object o)
    Log to stderr if debug mode is activated
    static void logErr​(java.lang.String s)
    Log to stderr if debug mode is activated
    static void printClassInfo​(java.lang.Class c)  
    static void showCopyableError​(java.awt.Component parent, java.lang.Throwable t, java.lang.String title)  
    static void showErrorDialog​(java.awt.Component parent, java.lang.String message, java.lang.Throwable t)  
    static void showErrorDialog​(java.awt.Component parent, java.lang.Throwable t)  
    static void showExpandableErrorDialog​(java.awt.Component parent, java.lang.String message, java.lang.String detailMessage, java.lang.String title)
    Show error message dialog where a detailed message can be revealed Good for showing exceptions with user friendly interpretation as main message
    static void showFriendlyErrorDialog​(java.awt.Component parent, java.lang.Throwable t)  
    static void showStackTraceDialog​(java.awt.Component parent, java.lang.Throwable t)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • showErrorDialog

      public static void showErrorDialog​(java.awt.Component parent, java.lang.Throwable t)
    • showFriendlyErrorDialog

      public static void showFriendlyErrorDialog​(java.awt.Component parent, java.lang.Throwable t)
    • showErrorDialog

      public static void showErrorDialog​(java.awt.Component parent, java.lang.String message, java.lang.Throwable t)
    • showExpandableErrorDialog

      public static void showExpandableErrorDialog​(java.awt.Component parent, java.lang.String message, java.lang.String detailMessage, java.lang.String title)
      Show error message dialog where a detailed message can be revealed Good for showing exceptions with user friendly interpretation as main message
      Parameters:
      parent -
      message -
      detailMessage -
      title -
      Since:
      16
    • showStackTraceDialog

      public static void showStackTraceDialog​(java.awt.Component parent, java.lang.Throwable t)
    • showCopyableError

      public static void showCopyableError​(java.awt.Component parent, java.lang.Throwable t, java.lang.String title)
    • printClassInfo

      public static void printClassInfo​(java.lang.Class c)
    • log

      public static void log​(java.lang.String s)
      Log to stdout if debug mode is activated
      Since:
      11.4
    • logErr

      public static void logErr​(java.lang.String s)
      Log to stderr if debug mode is activated
      Since:
      11.4
    • logErr

      public static void logErr​(java.lang.Object o)
      Log to stderr if debug mode is activated
      Since:
      11.4