FileDocCategorySizeDatePackage
ErrorHandler.javaAPI DocExample1107Sun Aug 24 08:31:04 BST 2003None

ErrorHandler

public class ErrorHandler extends Object
This class is usable by AWT to handle exceptions. System.setProperty("sun.awt.exception.handler", "ErrorHandler"); This usage is documented in the source code up to 1.4Beta for java.awt.EventDispatchThread. This class exists in all standard implementations (try "javap java.awt.EventQueueDispatchThread"), but is not public so there's no javadoc. NOTE: there is a strong admonition that the interface WILL be changed in future.

In real life this could be part of your application, and can do almost anything. The error handler itself does not need to import awt, awt.event, swing, or anything else.

author
Ian Darwin
version
$Id: ErrorHandler.java,v 1.4 2003/08/24 12:31:03 ian Exp $

Fields Summary
Constructors Summary
public ErrorHandler()
Default constructor must exist (I know it's the default; this is here in case somebody adds any other constructor).

		System.out.println("CONSTRUCTED");
	
Methods Summary
public voidhandle(java.lang.Throwable t)

		System.err.println("Hey, I caught it!");
		System.err.println(t.toString());