XML DOM - RangeException object
RangeException objects notify of range-specific exceptions.
RangeException object
RangeException objects are thrown by some methods of the Range interface to notify some type of problem.
Note:Most of the exceptions thrown by Range interface methods are DOMException objects. RangeException objects are generated only when the existing DOMException error constants are not suitable to represent the current exception.
Constants of RangeException object
The following constants define the valid values for the code property of the RangeException object. Note that these constants are static properties of the RangeException interface, not properties of individual exception objects.
BAD_BOUNDARYPOINTS_ERR
The boundary points of the range are not valid for the requested operation.
INVALID_NODE_TYPE_ERR
Attempt to set the containing node of the range boundary point to an invalid node or a node with an invalid ancestor.
Properties of RangeException object
Property | Description |
---|---|
code | Provide error codes that contain detailed information about the exception that caused the error. The valid values (and their meanings) of this property are defined by the constants listed above. |