01: /*
02: * Copyright (c) 2002 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE.
10: * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11: */
12:
13: package org.w3c.dom;
14:
15: /**
16: * <code>DOMError</code> is an interface that describes an error.
17: * <p>See also the <a href='http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114'>Document Object Model (DOM) Level 3 Core Specification</a>.
18: */
19: public interface DOMError {
20: /**
21: * The severity of the error described by the <code>DOMError</code> is
22: * warning
23: */
24: public static final short SEVERITY_WARNING = 0;
25: /**
26: * The severity of the error described by the <code>DOMError</code> is
27: * error
28: */
29: public static final short SEVERITY_ERROR = 1;
30: /**
31: * The severity of the error described by the <code>DOMError</code> is
32: * fatal error
33: */
34: public static final short SEVERITY_FATAL_ERROR = 2;
35:
36: /**
37: * The severity of the error, either <code>SEVERITY_WARNING</code>,
38: * <code>SEVERITY_ERROR</code>, or <code>SEVERITY_FATAL_ERROR</code>.
39: */
40: public short getSeverity();
41:
42: /**
43: * An implementation specific string describing the error that occured.
44: */
45: public String getMessage();
46:
47: /**
48: * The related platform dependent exception if any.exception is a reserved
49: * word, we need to rename it.Change to "relatedException". (F2F 26 Sep
50: * 2001)
51: */
52: public Object getRelatedException();
53:
54: /**
55: * The location of the error.
56: */
57: public DOMLocator getLocation();
58:
59: }
|