01: /*=============================================================================
02: * Copyright Texas Instruments, Inc., 2002. All Rights Reserved.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the GNU General Public License as published by
06: * the Free Software Foundation; either version 2 of the License, or
07: * (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package ti.chimera.service;
20:
21: /**
22: * The "talkback" service, used to deal with unhandled exceptions and other
23: * error conditions. Can be implemented to, for example, email a bug report
24: * to the developer(s).
25: *
26: * @author Rob Clark
27: * @version 0.1
28: */
29: public abstract class Talkback extends ti.chimera.Service {
30: /**
31: * Class Constructor.
32: */
33: public Talkback() {
34: super ("talkback");
35: }
36:
37: /**
38: * Deal with an unhandled exception. The thread (<code>t</code>) may
39: * be <code>null</code>, for example if the thread the exception is
40: * thrown in is AWT event dispatch thread.
41: *
42: * @param t the thread the exception was thrown in
43: * @param e the exception
44: */
45: public abstract void uncaughtException(Thread t, Throwable e);
46: }
47:
48: /*
49: * Local Variables:
50: * tab-width: 2
51: * indent-tabs-mode: nil
52: * mode: java
53: * c-indentation-style: java
54: * c-basic-offset: 2
55: * eval: (c-set-offset 'substatement-open '0)
56: * End:
57: */
|