org.w3c.dom.ranges

Class RangeException

Implemented Interfaces:
Serializable

public class RangeException
extends RuntimeException

Range operations may throw a RangeException as specified in their method descriptions.

See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.

Since:
DOM Level 2
See Also:
Serialized Form

Field Summary

static short
BAD_BOUNDARYPOINTS_ERR
If the boundary-points of a Range do not meet specific requirements.
static short
INVALID_NODE_TYPE_ERR
If the container of an boundary-point of a Range is being set to either a node of an invalid type or a node with an ancestor of an invalid type.
short
code

Constructor Summary

RangeException(short code, String message)

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

BAD_BOUNDARYPOINTS_ERR

public static final short BAD_BOUNDARYPOINTS_ERR
If the boundary-points of a Range do not meet specific requirements.
Field Value:
1

INVALID_NODE_TYPE_ERR

public static final short INVALID_NODE_TYPE_ERR
If the container of an boundary-point of a Range is being set to either a node of an invalid type or a node with an ancestor of an invalid type.
Field Value:
2

code

public short code

Constructor Details

RangeException

public RangeException(short code,
                      String message)

* Copyright (c) 2000 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.