KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > dom > DOMExceptionImpl


1 package net.sf.saxon.dom;
2 import org.w3c.dom.DOMException JavaDoc;
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 JavaDoc {
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
58 //
59
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
60
// you may not use this file except in compliance with the License. You may obtain a copy of the
61
// License at http://www.mozilla.org/MPL/
62
//
63
// Software distributed under the License is distributed on an "AS IS" basis,
64
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
65
// See the License for the specific language governing rights and limitations under the License.
66
//
67
// The Original Code is: all this file.
68
//
69
// The Initial Developer of the Original Code is Michael H. Kay
70
//
71
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
72
//
73
// Contributor(s): none
74
//
Popular Tags