de.kosi.gui.util
Class SwingExceptionHandler
java.lang.Object
|
+--de.kosi.util.ExceptionHandler
|
+--de.kosi.gui.util.SwingExceptionHandler
- public class SwingExceptionHandler
- extends ExceptionHandler
This class implements an ExceptionHandler, that displays exceptions in a
swing dialog.
ChangeLog:
$Log: SwingExceptionHandler.java,v $
Revision 1.1 2001/06/25 14:49:13 jiriki
- Added better Exception handling to the client
- Removed unused source
Revision 1.4 2001/06/22 10:16:02 jiriki
Inserted AboutBox
Revision 1.3 2001/05/22 16:05:24 jiriki
Made files more compliant to Coding Conventions.
Revision 1.2 2001/05/22 10:16:02 jiriki
- Removed old unused Client class
- Removed unused import statements.
Revision 1.1.1.1 2001/04/29 18:05:16 jiriki
Imported sources from zola.
Revision 1.1 2001/04/29 16:50:44 wombat
Added ExceptionHandlers
- Version:
- $Revision: 1.1 $ ($Date: 2001/06/25 14:49:13 $)
- Author:
- Niklas Mehner
Constructor Summary |
SwingExceptionHandler(javax.swing.JDialog parentDialog)
Create a new SwingExceptionHandler with the default exception handler
as parent. |
SwingExceptionHandler(javax.swing.JFrame parentFrame)
Create a new SwingExceptionHandler with the default exception handler
as parent. |
SwingExceptionHandler(javax.swing.JFrame parentFrame,
ExceptionHandler parent)
Create a new ExceptionHandler with the given parent. |
Method Summary |
void |
handleException(java.lang.Throwable e)
Handle a throwable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingExceptionHandler
public SwingExceptionHandler(javax.swing.JFrame parentFrame)
- Create a new SwingExceptionHandler with the default exception handler
as parent.
- Parameters:
parentFrame
- This is used as parent for the displayed dialog.
SwingExceptionHandler
public SwingExceptionHandler(javax.swing.JDialog parentDialog)
- Create a new SwingExceptionHandler with the default exception handler
as parent.
- Parameters:
parentDialog
- This is used as parent for the displayed dialog.
SwingExceptionHandler
public SwingExceptionHandler(javax.swing.JFrame parentFrame,
ExceptionHandler parent)
- Create a new ExceptionHandler with the given parent.
- Parameters:
parent
- Parent handler.parentFrame
- This is used as parent for the displayed dialog.
handleException
public void handleException(java.lang.Throwable e)
- Handle a throwable. If e is a Exception, a dialog is displayed,
that contains informations about the Exception. If a is an
error (an OutOfMemoryError for example) it makes no sense to
display a dialog and the exception is forwarded to the parent
handler.
The dialog is displayed using SwingUtilities.invokeLater(), so the
method returns instantly.
- Overrides:
handleException
in class ExceptionHandler
- Parameters:
e
- Throwable to be handled.