Interface GraphicalErrorLogger


public interface GraphicalErrorLogger
This interface provides a means to access the platform-specific GUI classes from UI-independent code in YAAC.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • showErrorMessageDialog

      void showErrorMessageDialog(Object parentComponent, Throwable ex, String title, String bodyText)
      Display a standard error message dialog for a stack trace.
      Parameters:
      parentComponent - widget that asked the dialog to be displayed (may be null)
      ex - Throwable being reported (or null)
      title - localized title string to display in dialog
      bodyText - extra optional text String to be display before exception stack trace
    • showErrorConfirmDialog

      int showErrorConfirmDialog(Object parentComponent, Throwable ex, String title, String bodyText)
      Display a standard error message dialog for a stack trace that asks for a yes/no confirmation.
      Parameters:
      parentComponent - widget that asked the dialog to be displayed (may be null)
      ex - Throwable being reported (or null)
      title - localized title string to display in dialog
      bodyText - extra optional text String to be displayed before stack trace of exception
      Returns:
      int 0 for YES, 1 for NO, 2 for HELP, and -1 for dialog close