01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/utils/gui/ErrorHandler.java,v 1.1 2005/04/20 21:04:56 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is Java 3D(tm) Fly Through.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dfly.utils.gui;
19:
20: /**
21: *
22: * @author Jan Becicka
23: */
24: public interface ErrorHandler {
25:
26: /** Undefined severity. */
27: public static final int UNKNOWN = 0x00000000;
28: /** Message that would be useful for tracing events but which need not be a problem. */
29: public static final int INFORMATIONAL = 0x00000001;
30: /** Something went wrong in the software, but it is continuing and the user need not be bothered. */
31: public static final int WARNING = 0x00000010;
32: /** Something the user should be aware of. */
33: public static final int USER = 0x00000100;
34: /** Something went wrong, though it can be recovered. */
35: public static final int EXCEPTION = 0x00001000;
36: /** Serious problem, application may be crippled. */
37: public static final int ERROR = 0x00010000;
38:
39: public void notify(Throwable t);
40:
41: public void notify(Throwable t, int severity);
42:
43: public void notify(Throwable t, int severity, String message);
44: }
|