public class

RangeException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.w3c.dom.ranges.RangeException

Class Overview

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.

Summary

Constants
short BAD_BOUNDARYPOINTS_ERR If the boundary-points of a Range do not meet specific requirements.
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.
Fields
public short code
Public Constructors
RangeException(short code, String message)
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final short BAD_BOUNDARYPOINTS_ERR

If the boundary-points of a Range do not meet specific requirements.

Constant Value: 1 (0x00000001)

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.

Constant Value: 2 (0x00000002)

Fields

public short code

Public Constructors

public RangeException (short code, String message)