This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

DOMError

Summary

Represents a DOM operation error object.

Properties

message
Returns the message associated with an error that occurred during a DOM operation.
name
Returns the name of an error that occurred during a DOM operation.

Methods

No methods.

Events

No events.

Notes

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

Related pages

Attributions