class Throw { public static void main (String [] argv) { try { throw (new Foo ()); } catch (Foo f) { System.out.println (f); } } } class Foo extends Throwable { }