DOMError object
Describes errors that occur during Document Object Model (DOM) operations.
![]() |
DOM Information
Inheritance Hierarchy
The DOMError does not inherit from any class or interface.Members
The DOMError object has these types of members:
Methods
The DOMError object has these methods.
| Method | Description |
|---|---|
| toString (DOMError) |
Returns the name property of a DOMError and any associated message defined with the error. |
Properties
The DOMError object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Returns a DOMString value an error that occurred during a DOM operation. |
Remarks
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.
See also
Show:
