X(HT)ML - DOM Exception

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

Table of Contents

1 - About

2 - Example

To throw a TimeoutError exception, a user agent would construct a DOMException object whose type was the string “TimeoutError” (and whose code was the number 23, for legacy reasons) and actually throw that object as an exception.

3 - Types

They are all defined in the DOM specification.

Error Number Description
1 IndexSizeError
3 HierarchyRequestError
4 WrongDocumentError
5 InvalidCharacterError
7 NoModificationAllowedError
8 NotFoundError
9 NotSupportedError
11 InvalidStateError
12 SyntaxError
13 InvalidModificationError
14 NamespaceError
15 InvalidAccessError
18 SecurityError
19 NetworkError
20 AbortError
21 URLMismatchError
22 QuotaExceededError
23 TimeoutError
24 InvalidNodeTypeError
25 DataCloneError
Advertising
web/html/domexception.txt · Last modified: 2019/02/09 11:29 by gerardnico