edu.northwestern.at.utils.swing
Class UnexpectedErrorMessage

java.lang.Object
  extended by edu.northwestern.at.utils.swing.UnexpectedErrorMessage

public class UnexpectedErrorMessage
extends java.lang.Object

An unexpected error message alert.

This alert is used to report "unexpected" Java exceptions. It contains the stop icon, the title "Unexpected Error", an optional additional message supplied by the caller, and a full stack trace in a scrolling text area. The alert can be used to catch and report exceptions even in threads other than the AWT event dispatching thread.

You may supply extra verbiage to be included in the report before the stack trace.


Constructor Summary
UnexpectedErrorMessage(java.lang.Throwable t)
          Constructs and displays an unexpected error message alert with no parent window or message.
UnexpectedErrorMessage(java.lang.Throwable t, java.lang.String msg)
          Constructs and displays an unexpected error message alert with no parent window.
UnexpectedErrorMessage(java.lang.Throwable t, java.lang.String msg, java.awt.Frame parentWindow)
          Constructs and displays an unexpected error message alert.
 
Method Summary
static void setExtraVerbiage(java.lang.String str)
          Sets the extra verbiage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnexpectedErrorMessage

public UnexpectedErrorMessage(java.lang.Throwable t,
                              java.lang.String msg,
                              java.awt.Frame parentWindow)
Constructs and displays an unexpected error message alert.

Parameters:
t - The throwable.
msg - The error message, or null if none.
parentWindow - The parent window, or null if none. The dialog is positioned centered over its parent window horizontally and positioned with its top 25 pixels below the top of its parent.

UnexpectedErrorMessage

public UnexpectedErrorMessage(java.lang.Throwable t,
                              java.lang.String msg)
Constructs and displays an unexpected error message alert with no parent window.

Parameters:
t - The throwable.
msg - The error message.

UnexpectedErrorMessage

public UnexpectedErrorMessage(java.lang.Throwable t)
Constructs and displays an unexpected error message alert with no parent window or message.

Parameters:
t - The throwable.
Method Detail

setExtraVerbiage

public static void setExtraVerbiage(java.lang.String str)
Sets the extra verbiage.

Parameters:
str - Extra verbiage.