A runtime exception but you should catch it
Error code gives more detailed information:
- Index or size is negative,
or greater than the allowed value
The specified range of text does not fit into a
- Attempt to insert
somewhere it doesn't belong
- If a node is used in a
different document than the one that created it (that doesn't support it)
- An invalid or illegal
character is specified, such as in a name.
Attempt to add data to a node which does not support data
Attempt to modify a read-only object
Attempt to reference a node in a context where it does not
The implementation does not support the type of object requested
Attempt to add an attribute to an element that already
has that attribute
An attempt is made to use an object that is not,
or no longer, usable.
An invalid or illegal string is specified.
An attempt to modify the type of the
An attempt is made to create or change an object
in a way which is incorrect with regard to namespaces.
A parameter or an operation is not supported by
the underlying object.
Current value accessible from the public