Debian Codegraph @

net/sf/saxon/dom/DOMExceptionImpl.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.dom;
9
10 import org.w3c.dom.DOMException;
11
12 /**
13 * DOM operations only raise exceptions in "exceptional" circumstances,
14 * i.e., when an operation is impossible to perform (either for logical
15 * reasons, because data is lost, or because the implementation has become
16 * unstable). In general, DOM methods return specific error values in ordinary
17 * processing situations, such as out-of-bound errors when using
18 * <code>NodeList</code> .
19 * <p> Implementations may raise other exceptions under other circumstances.
20 * For example, implementations may raise an implementation-dependent
21 * exception if a <code>null</code> argument is passed.
22 * <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>.
23 */
24 public class DOMExceptionImpl extends DOMException {
25
26 public DOMExceptionImpl(short code, String message) {
27 super(code, message);
28 }
29
30 public short code;
31 // ExceptionCode
32 // public static final short INDEX_SIZE_ERR = 1;
33 // public static final short DOMSTRING_SIZE_ERR = 2;
34 // public static final short HIERARCHY_REQUEST_ERR = 3;
35 // public static final short WRONG_DOCUMENT_ERR = 4;
36 // public static final short INVALID_CHARACTER_ERR = 5;
37 // public static final short NO_DATA_ALLOWED_ERR = 6;
38 // public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
39 // public static final short NOT_FOUND_ERR = 8;
40 // public static final short NOT_SUPPORTED_ERR = 9;
41 // public static final short INUSE_ATTRIBUTE_ERR = 10;
42 /**
43 * @since DOM Level 2
44 */
45 public static final short INVALID_STATE_ERR = 11;
46 /**
47 * @since DOM Level 2
48 */
49 public static final short SYNTAX_ERR = 12;
50 /**
51 * @since DOM Level 2
52 */
53 public static final short INVALID_MODIFICATION_ERR = 13;
54 /**
55 * @since DOM Level 2
56 */
57 public static final short NAMESPACE_ERR = 14;
58 /**
59 * @since DOM Level 2
60 */
61 public static final short INVALID_ACCESS_ERR = 15;
62
63 }
64
65