|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJExceptionReporter
public class JExceptionReporter
Displays an Exception
to the user in a modal dialog. This class is not a Swing
component itself, rather it provides static showDialog
methods to create and
display dialogs safely from any thread.
Example of use:
try {
// ...something awful happens in here...
} catch (SomeException ex) {
JExceptionReporter.showDialog(ex, "Bummer, it failed again");
}
Method Summary | |
---|---|
static void |
showDialog(Throwable exception)
Displays an exception in a dialog where the title is the exception class name and the body of the dialog shows the exception message. |
static void |
showDialog(Throwable exception,
String message)
Displays an exception in a dialog where the title is the exception class name and the body of the dialog shows the given message. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void showDialog(Throwable exception)
It is safe to call this method from any thread.
exception
- exception to displaypublic static void showDialog(Throwable exception, String message)
It is safe to call this method from any thread.
exception
- exception to displaymessage
- message to display; if null
or empty the
message will be taken from the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |