Link Search Menu Expand Document

XmlDOMException.Code property

It is a type of exception. The values ​​are as follows.

Constant Value Explanation
XmlDOMException.INDEX_SIZE_ERR 1 If the index or size is negative or greater than the allowed value
XmlDOMException.DOMSTRING_SIZE_ERR 2 If the specified range of text does not fit in the DOMString
XmlDOMException.HIERARCHY_REQUEST_ERR 3 When inserted in a place where any node does not belong
XmlDOMException.WRONG_DOCUMENT_ERR 4 If the node is used in an unsupported document that is different from the one you created
XmlDOMException.INVALID_CHARACTER_ERR 5 When invalid or incorrect characters are specified in the name etc.
XmlDOMException.NO_DATA_ALLOWED_ERR 6 When data is specified on a node that does not support data
XmlDOMException.NO_MODIFICATION_ALLOWED_ERR 7 If you attempt to modify an object in a location that is not allowed to be modified
XmlDOMException.NOT_FOUND_ERR 8 If you attempt to reference a node in a context that does not exist
XmlDOMException.NOT_SUPPORTED_ERR 9 If the implementation does not support the requested type of object or processing
XmlDOMException.INUSE_ATTRIBUTE_ERR 10 If you try to add an attribute that is already used elsewhere
XmlDOMException.INVALID_STATE_ERR 11 If you try to use an object that no longer exists or is unused
XmlDOMException.SYNTAX_ERR 12 If you specify an invalid or incorrect character string
XmlDOMException.INVALID_MODIFICATION_ERR 13 If you try to change the type of the base object
XmlDOMException.NAMESPACE_ERR 14 If you try to create or modify an object in an illegal way with respect to namespaces
XmlDOMException.INVALID_ACCESS_ERR 15 If the parameter or process is not supported on the base object

This property is read-only and cannot be changed.