DOM - DOM Exception

1 - About

Code - Exception (Try, Catch, Finally statement) in the DOM.

3 - 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.

4 - 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

Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap