Package org

Class ErrorMsg

java.lang.Object
org.ErrorMsg
All Implemented Interfaces:
HelperClass

public class ErrorMsg
extends Object
implements HelperClass
Author:
klukas
  • Constructor Details

    • ErrorMsg

      public ErrorMsg()
  • Method Details

    • setRethrowErrorMessages

      public static void setRethrowErrorMessages​(boolean rethrowErrorMessages)
    • getDecimalFormat

      public static DecimalFormat getDecimalFormat​(String pattern)
    • addErrorMessage

      public static void addErrorMessage​(String errorMsg)
      Adds a errorMessage to a global list. The error messages can be retrieved with getErrorMessages and cleared with clearErrorMessages.
      Parameters:
      errorMsg -
    • addErrorMessage

      public static void addErrorMessage​(Thread t, StackTraceElement[] sf)
    • setStatusMessage

      public static void setStatusMessage​(String statusMsg)
    • clearErrorMessages

      public static void clearErrorMessages()
      Removes the current error messages. E.g. after showing them to the user.
    • getErrorMessages

      public static String[] getErrorMessages()
      Returns pending error messages that were not shown to the user immediately.
      Returns:
      Pending Error Messages
    • getErrors

      public static String[] getErrors()
    • getErrorMessagesShort

      public static String[] getErrorMessagesShort()
    • getErrorMessagesAsXML

      public static String getErrorMessagesAsXML()
      Returns:
    • getErrorMsgCount

      public static int getErrorMsgCount()
    • getLastStatusMessage

      public static String getLastStatusMessage()
    • getAppLoadingStatus

      public static ApplicationStatus getAppLoadingStatus()
    • setAppLoadingCompleted

      public static void setAppLoadingCompleted​(ApplicationStatus status)
    • areApploadingAndFinishActionsCompleted

      public static boolean areApploadingAndFinishActionsCompleted()
    • addOnAppLoadingFinishedAction

      public static void addOnAppLoadingFinishedAction​(Runnable actionListener)
    • findChildComponent

      public static Object findChildComponent​(Component c, Class<?> searchClass)
    • findChildComponents

      public static void findChildComponents​(Component c, Class<?> searchClass, ArrayList<Object> result)
    • findParentComponent

      public static Object findParentComponent​(Component c, Class<?> searchClass)
    • addErrorMessage

      public static void addErrorMessage​(Exception e)
      Adds exception to the global exception list, which is then reported to the user and prepared for reporting.

      It prints the stack trace, too!

      Parameters:
      e - the exception
    • addErrorMessage

      public static void addErrorMessage​(Throwable t)
    • addOnAddonLoadingFinishedAction

      public static void addOnAddonLoadingFinishedAction​(Runnable runnable)