01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.gui;
12:
13: /**
14: * This is a handy class for tracing Exceptions that are otherwise lost in
15: * the thread chaos. See the method handleException() in
16: * class java.awt.EventDispatchThread. The magic system property
17: * "sun.awt.exception.handler" must be set to
18: * "de.uka.ilkd.key.gui.ExceptionalHandler" for this to work.
19: */
20:
21: public class ExceptionalHandler {
22:
23: public void handle(Throwable t) {
24: System.err.println("*** Here's the exceptional handler ***");
25: System.err.println(t);
26: t.printStackTrace();
27: }
28:
29: }
|