Class ErrorHandlerUtil

java.lang.Object
org.csstudio.opibuilder.util.ErrorHandlerUtil

public class ErrorHandlerUtil extends Object
  • Constructor Details

    • ErrorHandlerUtil

      public ErrorHandlerUtil()
  • Method Details

    • handleError

      public static void handleError(String message, Throwable exception, boolean writeToConsole, boolean popErrorDialog)
      General error handle method.
      Parameters:
      message - message of the error.
      exception - the exception.
      writeToConsole - true if message will output to console.
      popErrorDialog - true if an error dialog will popup. Must be called in UI thread if this is true.
    • handleError

      public static void handleError(String message, Throwable exception)
      This method will call handleError(String, Throwable, boolean, boolean) with writeToConsole as true and popErrorDialog as false.