]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/org/w3c/dom/DOMException.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / org / w3c / dom / DOMException.java
diff --git a/libjava/org/w3c/dom/DOMException.java b/libjava/org/w3c/dom/DOMException.java
deleted file mode 100644 (file)
index 41ad08a..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*\r
- * Copyright (c) 2000 World Wide Web Consortium,\r
- * (Massachusetts Institute of Technology, Institut National de\r
- * Recherche en Informatique et en Automatique, Keio University). All\r
- * Rights Reserved. This program is distributed under the W3C's Software\r
- * Intellectual Property License. This program is distributed in the\r
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even\r
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
- * PURPOSE.\r
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.\r
- */\r
-\r
-package org.w3c.dom;\r
-\r
-/**\r
- * DOM operations only raise exceptions in "exceptional" circumstances, i.e., \r
- * when an operation is impossible to perform (either for logical reasons, \r
- * because data is lost, or because the implementation has become unstable). \r
- * In general, DOM methods return specific error values in ordinary \r
- * processing situations, such as out-of-bound errors when using \r
- * <code>NodeList</code>. \r
- * <p>Implementations should raise other exceptions under other circumstances. \r
- * For example, implementations should raise an implementation-dependent \r
- * exception if a <code>null</code> argument is passed. \r
- * <p>Some languages and object systems do not support the concept of \r
- * exceptions. For such systems, error conditions may be indicated using \r
- * native error reporting mechanisms. For some bindings, for example, \r
- * methods may return error codes similar to those listed in the \r
- * corresponding method descriptions.\r
- * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.\r
- */\r
-public class DOMException extends RuntimeException {\r
-    public DOMException(short code, String message) {\r
-       super(message);\r
-       this.code = code;\r
-    }\r
-    /** @serial */\r
-    public short   code;\r
-    // ExceptionCode\r
-    /**\r
-     * If index or size is negative, or greater than the allowed value\r
-     */\r
-    public static final short INDEX_SIZE_ERR            = 1;\r
-    /**\r
-     * If the specified range of text does not fit into a DOMString\r
-     */\r
-    public static final short DOMSTRING_SIZE_ERR        = 2;\r
-    /**\r
-     * If any node is inserted somewhere it doesn't belong\r
-     */\r
-    public static final short HIERARCHY_REQUEST_ERR     = 3;\r
-    /**\r
-     * If a node is used in a different document than the one that created it \r
-     * (that doesn't support it)\r
-     */\r
-    public static final short WRONG_DOCUMENT_ERR        = 4;\r
-    /**\r
-     * If an invalid or illegal character is specified, such as in a name. See \r
-     * production 2 in the XML specification for the definition of a legal \r
-     * character, and production 5 for the definition of a legal name \r
-     * character.\r
-     */\r
-    public static final short INVALID_CHARACTER_ERR     = 5;\r
-    /**\r
-     * If data is specified for a node which does not support data\r
-     */\r
-    public static final short NO_DATA_ALLOWED_ERR       = 6;\r
-    /**\r
-     * If an attempt is made to modify an object where modifications are not \r
-     * allowed\r
-     */\r
-    public static final short NO_MODIFICATION_ALLOWED_ERR = 7;\r
-    /**\r
-     * If an attempt is made to reference a node in a context where it does \r
-     * not exist\r
-     */\r
-    public static final short NOT_FOUND_ERR             = 8;\r
-    /**\r
-     * If the implementation does not support the requested type of object or \r
-     * operation.\r
-     */\r
-    public static final short NOT_SUPPORTED_ERR         = 9;\r
-    /**\r
-     * If an attempt is made to add an attribute that is already in use \r
-     * elsewhere\r
-     */\r
-    public static final short INUSE_ATTRIBUTE_ERR       = 10;\r
-    /**\r
-     * If an attempt is made to use an object that is not, or is no longer, \r
-     * usable.\r
-     * @since DOM Level 2\r
-     */\r
-    public static final short INVALID_STATE_ERR         = 11;\r
-    /**\r
-     * If an invalid or illegal string is specified.\r
-     * @since DOM Level 2\r
-     */\r
-    public static final short SYNTAX_ERR                = 12;\r
-    /**\r
-     * If an attempt is made to modify the type of the underlying object.\r
-     * @since DOM Level 2\r
-     */\r
-    public static final short INVALID_MODIFICATION_ERR  = 13;\r
-    /**\r
-     * If an attempt is made to create or change an object in a way which is \r
-     * incorrect with regard to namespaces.\r
-     * @since DOM Level 2\r
-     */\r
-    public static final short NAMESPACE_ERR             = 14;\r
-    /**\r
-     * If a parameter or an operation is not supported by the underlying \r
-     * object.\r
-     * @since DOM Level 2\r
-     */\r
-    public static final short INVALID_ACCESS_ERR        = 15;\r
-\r
-}\r