Describes errors that occur during Document Object Model (DOM) operations.
Inheritance HierarchyThe DOMError does not inherit from any class or interface.
The DOMError object has these types of members:
The DOMError object has these methods.
Returns the name property of a DOMError and any associated message defined with the error.
The DOMError object has these properties.
Returns a DOMString value an error that occurred during a DOM operation.
While similar to DOMException objects, DOMError objects represent errors that are generated through other means, such as return values. (DOMException objects are thrown as exceptions.) Both objects return similar values, so it is possible to create general handlers to respond to either type of error.