DOM Exception Error Codes

This topic lists the values that are returned by the DOMException, EventException, RangeException, and SVGException objects in IE9 Standards mode. The list is sorted alphabetically by name.

Constant/valueDescription
DOMException.ABORT_ERR
20

The user aborted an operation. Starting with Internet Explorer 10, the error-code string AbortError is returned instead.

DOMException.DOMSTRING_SIZE_ERR
2

The specified range of text is too large. Starting with Internet Explorer 10, the error-code string DOMStringSizeError is returned instead.

DOMException.HIERARCHY_REQUEST_ERR
3

The node cannot be inserted at the requested location. Starting with Internet Explorer 10, the error-code string HierarchyRequestError is returned instead.

DOMException.INDEX_SIZE_ERR
1

Index or size is negative, or greater than the allowed value. Starting with Internet Explorer 10, the error-code string IndexSizeError is returned instead.

DOMException.INUSE_ATTRIBUTE_ERR
10

The specified attribute is already in use elsewhere. Starting with Internet Explorer 10, the error-code string InuseAttributeError is returned instead.

DOMException.INVALID_ACCESS_ERR
15

A parameter or operation is not supported. Starting with Internet Explorer 10, the error-code string InvalidAccessError is returned instead.

DOMException.INVALID_CHARACTER_ERR
5

An invalid or illegal character is specified, such as, in a name. Starting with Internet Explorer 10, the error-code string InvalidCharacterError is returned instead.

DOMException.INVALID_MODIFICATION_ERR
13

The underlying object type cannot be modified. Starting with Internet Explorer 10, the error-code string InvalidModificationError is returned instead.

DOMException.INVALID_STATE_ERR
11

The specified node is not attached to the document. Starting with Internet Explorer 10, the error-code string InvalidStateError is returned instead.

DOMException.NAMESPACE_ERR
14

A namespace is required, or an invalid namespace is used. Starting with Internet Explorer 10, the error-code string NamespaceError is returned instead.

DOMException.NETWORK_ERR
19

A network error occurred. Starting with Internet Explorer 10, the error-code string NetworkError is returned instead.

DOMException.NO_DATA_ALLOWED_ERR
6

Data is specified for a node that does not support data. Starting with Internet Explorer 10, the error-code string NoDataAllowedError is returned instead.

DOMException.NO_MODIFICATION_ALLOWED_ERR
7

An attempt is made to modify an object that cannot be changed. Starting with Internet Explorer 10, the error-code string NoModificationAllowedError is returned instead.

DOMException.NOT_FOUND_ERR
8

The specified node cannot be found. Starting with Internet Explorer 10, the error-code string NotFoundError is returned instead.

DOMException.NOT_SUPPORTED_ERR
9

The requested operation is not supported. Starting with Internet Explorer 10, the error-code string NotSupportedError is returned instead.

DOMException.QUOTA_EXCEEDED_ERR
22

The operation would exceed storage limits. Starting with Internet Explorer 10, the error-code string QuotaExceededError is returned instead.

DOMException.SECURITY_ERR
18

The operation is not allowed due to same origin policy restriction. Starting with Internet Explorer 10, the error-code string SecurityError is returned instead.

DOMException.SYNTAX_ERR
12

An invalid string value is specified. Starting with Internet Explorer 10, the error-code string SyntaxError is returned instead.

DOMException.TYPE_MISMATCH_ERR
17

The node type is incompatible with the expected parameter type. Starting with Internet Explorer 10, the error-code string TypeMismatchError is returned instead.

DOMException.URL_MISMATCH_ERR
21

The specified URL does not match. Starting with Internet Explorer 10, the error-code string URLMismatchError is returned instead.

DOMException.VALIDATION_ERR
16

The operation would cause the node to fail validation. Starting with Internet Explorer 10, the error-code string ValidationError is returned instead.

DOMException.WRONG_DOCUMENT_ERR
4

The node is owned by a different document and cannot be used. Starting with Internet Explorer 10, the error-code string WrongDocumentError is returned instead.

EventException.UNSPECIFIED_EVENT_TYPE_ERR
0

The event was not initialized before it was dispatched. Starting with Internet Explorer 10, the error-code string InvalidStateError is returned instead.

EventException.DISPATCH_REQUEST_ERR
1

An event cannot dispatched more than one time. Starting with Internet Explorer 10, the error-code string InvalidCharacterError is returned instead.

RangeException.BAD_BOUNDARYPOINTS_ERR
1

Start point and end point are not in the same branch. Starting with Internet Explorer 10, the error-code string BadBoundarypointsError is returned instead.

RangeException.INVALID_NODE_TYPE_ERR
2

The node type is not valid for the specified operation. Starting with Internet Explorer 10, the error-code string InvalidNodeTypeError is returned instead.

SVGException.SVG_INVALID_VALUE_ERR
1

The value is outside the expected range. Starting with Internet Explorer 10, the error-code string SVGInvalidValueError is returned instead.

SVGException.SVG_MATRIX_NOT_INVERTABLE_ERR
2

The matrix cannot be inverted (for example, its determinant is near zero). Starting with Internet Explorer 10, the error-code string SVGMatrixNotInvertableError is returned instead.

SVGException.SVG_WRONG_TYPE_ERR
0

The object type is not valid for the specified operation. Starting with Internet Explorer 10, the error-code string SVGWrongTypeError is returned instead.

Remarks

For an example of how to process Internet Explorer 10 (and later) error-code strings, see FileError.

Requirements

 

 

Show:
© 2014 Microsoft