KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > tree > DOMExceptionImpl


1 package com.icl.saxon.tree;
2 import org.w3c.dom.*;
3
4 /**
5  * DOM operations only raise exceptions in "exceptional" circumstances,
6  * i.e., when an operation is impossible to perform (either for logical
7  * reasons, because data is lost, or because the implementation has become
8  * unstable). In general, DOM methods return specific error values in ordinary
9  * processing situations, such as out-of-bound errors when using
10  * <code>NodeList</code> .
11  * <p> Implementations may raise other exceptions under other circumstances.
12  * For example, implementations may raise an implementation-dependent
13  * exception if a <code>null</code> argument is passed.
14  * <p>See also the <a HREF='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
15  */

16 public class DOMExceptionImpl extends DOMException {
17     
18     public DOMExceptionImpl (short code, String JavaDoc message) {
19        super(code, message);
20        //this.code = code;
21
}
22     public short code;
23     // ExceptionCode
24
public static final short INDEX_SIZE_ERR = 1;
25     public static final short DOMSTRING_SIZE_ERR = 2;
26     public static final short HIERARCHY_REQUEST_ERR = 3;
27     public static final short WRONG_DOCUMENT_ERR = 4;
28     public static final short INVALID_CHARACTER_ERR = 5;
29     public static final short NO_DATA_ALLOWED_ERR = 6;
30     public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
31     public static final short NOT_FOUND_ERR = 8;
32     public static final short NOT_SUPPORTED_ERR = 9;
33     public static final short INUSE_ATTRIBUTE_ERR = 10;
34     /**
35      * @since DOM Level 2
36      */

37     public static final short INVALID_STATE_ERR = 11;
38     /**
39      * @since DOM Level 2
40      */

41     public static final short SYNTAX_ERR = 12;
42     /**
43      * @since DOM Level 2
44      */

45     public static final short INVALID_MODIFICATION_ERR = 13;
46     /**
47      * @since DOM Level 2
48      */

49     public static final short NAMESPACE_ERR = 14;
50     /**
51      * @since DOM Level 2
52      */

53     public static final short INVALID_ACCESS_ERR = 15;
54
55 }
56
57
Popular Tags