FileDocCategorySizeDatePackage
Uncaught.javaAPI DocExample437Sat Apr 23 22:35:36 BST 2005None

Uncaught

public class Uncaught extends Object implements Runnable

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		Thread thread = new Thread( new Uncaught() );
		thread.setUncaughtExceptionHandler( 
			new Thread.UncaughtExceptionHandler() {
				public void uncaughtException( Thread t, Throwable e ) {
					System.err.println( t + " threw exception: " + e );
				}
		} );
		thread.start();
	
public voidrun()

		throw new ArithmeticException();