+++ /dev/null
-/*\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.ranges;\r
-\r
-/**\r
- * Range operations may throw a <code>RangeException</code> as specified in \r
- * their method descriptions.\r
- * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.\r
- * @since DOM Level 2\r
- */\r
-public class RangeException extends RuntimeException {\r
- public RangeException(short code, String message) {\r
- super(message);\r
- this.code = code;\r
- }\r
- public short code;\r
- // RangeExceptionCode\r
- /**\r
- * If the boundary-points of a Range do not meet specific requirements.\r
- */\r
- public static final short BAD_BOUNDARYPOINTS_ERR = 1;\r
- /**\r
- * If the container of an boundary-point of a Range is being set to either \r
- * a node of an invalid type or a node with an ancestor of an invalid \r
- * type.\r
- */\r
- public static final short INVALID_NODE_TYPE_ERR = 2;\r
-\r
-}\r