XML DOM » Objects » DOMException

An exception is only raised in such unusual circumstances as when an operation is impossible to perform. This can happen for logical reasons, because data is lost or because the implementation has become unstable. In ordinary processing situations DOM methods generally return specific error values (e.g. out-of-bound errors when using a NodeList).

Specific implementations may raise other exceptions under other circumstances, such as passing a null argument.

Some languages and object systems do not support the concept of exceptions. In such cases error conditions may be indicated using native error-reporting mechanisms.

Error Types
Below is a list of the error type constants and the integers used to represent them.