|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.jhu.pha.ivoa.ErrorPrompter
Current Version =============== ID: $Id: ErrorPrompter.html,v 1.3 2003/08/18 18:05:02 carliles Exp $ Revision: $Revision: 1.3 $ Date/time: $Date: 2003/08/18 18:05:02 $A convenience class for notifying the user of an error or exception, which the user can expand to show the stack trace of the problem. The initial expansion of the stack trace display takes inordinately long on Linux, but it works fine in Windows, so as near as I can tell, it's a bug in the JRE on Linux.
A common usage would be something like
try
{
new Computer(System.getProperty("this.computer")).explode();
}
catch(Exception e)
{
ErrorPrompter.
showErrorDialog(null,
"There was a problem trying to " +
"blow up this computer.",
e);
}
| Method Summary | |
static void |
main(java.lang.String[] args)
For testing purposes. |
static java.lang.String |
revision()
|
static void |
showErrorDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.Throwable t)
Pops up a dialog with message, and an option to expand the
dialog to display the stack trace of t. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void main(java.lang.String[] args)
public static void showErrorDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.Throwable t)
message, and an option to expand the
dialog to display the stack trace of t.
parent - The parent JComponent, optionally null.message - The message to display.t - The Throwable containing the stack trace to be
displayed.public static java.lang.String revision()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||