Package org.ka2ddo.yaac.core
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 Summary
Modifier and TypeMethodDescriptionint
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.void
showErrorMessageDialog
(Object parentComponent, Throwable ex, String title, String bodyText) Display a standard error message dialog for a stack trace.
-
Method Details
-
showErrorMessageDialog
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 dialogbodyText
- extra optional text String to be display before exception stack trace
-
showErrorConfirmDialog
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 dialogbodyText
- 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
-