util
Class ErrorDialog

java.lang.Object
  extended by util.ErrorDialog

public class ErrorDialog
extends java.lang.Object

utility class to create dialogs for displaying exceptions. Cannot be instantiated

Author:
Daniel Wachsstock

Method Summary
static void errorDialog(java.lang.String resource, java.lang.Throwable ex)
          vshows an error dialog box.
static void errorDialogSpecific(java.lang.String resource, java.lang.Object[] o, java.lang.Throwable ex)
          shows an error dialog box, with a customizable message
static void msgbox(java.lang.String message)
          shows a message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

msgbox

public static void msgbox(java.lang.String message)
shows a message.

Parameters:
message - the string to display

errorDialog

public static void errorDialog(java.lang.String resource,
                               java.lang.Throwable ex)
vshows an error dialog box.

Parameters:
resource - the key of the string to display, which has the format title;error string where title is to be the title of the dialog box and string is the string to display
ex - the exception to display in the details field

errorDialogSpecific

public static void errorDialogSpecific(java.lang.String resource,
                                       java.lang.Object[] o,
                                       java.lang.Throwable ex)
shows an error dialog box, with a customizable message

Parameters:
resource - the key of the string to display, which has the format title;error string where title is to be the title of the dialog box and string is the string to display
o - the array of objects to insert using MessageFormat
ex - the exception to display in the details field