DOMException

来源:互联网 发布:淘宝刷单价格 编辑:程序博客网 时间:2024/05/16 17:43

http://www.w3.org/wiki/DOM/domcore/DOMException


DOM/domcore/DOMException

< DOM‎ | domcore

DOMException

DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). In general, DOM methods return specific error values in ordinary processing situations, such as out-of-bound errors when using NodeList.

ExceptionCode

CodeConstantDescription1INDEX_SIZE_ERRthe index is not in the allowed range2DOMSTRING_SIZE_ERRthe text does not fit in a DOMString3HIERARCHY_REQUEST_ERRthe operation would yield an incorrect nodes model4WRONG_DOCUMENT_ERRthe object is in the wrong Document, a call to importNode is required5INVALID_CHARACTER_ERRthe string contains invalid characters6NO_DATA_ALLOWED_ERRdata is specified for an object that does not support it (historical)7NO_MODIFICATION_ALLOWED_ERRthe object can not be modified8NOT_FOUND_ERRthe object can not be found here9NOT_SUPPORTED_ERRthis operation is not supported10INUSE_ATTRIBUTE_ERRthe attribute is in use (historical)11INVALID_STATE_ERRthe object is in an invalid state12SYNTAX_ERRthe string did not match the expected pattern13INVALID_MODIFICATION_ERRthe object can not be modified in this way14NAMESPACE_ERRthe operation is not allowed by Namespaces in XML15INVALID_ACCESS_ERRthe object does not support the operation or argument16VALIDATION_ERRthe operation is invalid (historical)17TYPE_MISMATCH_ERRthe type of the object does not match the expected type18SECURITY_ERRthe operation is insecure19NETWORK_ERRa network error occurred20ABORT_ERRthe user aborted an operation21URL_MISMATCH_ERRthe given URL does not match another URL22QUOTA_EXCEEDED_ERRthe quota has been exceeded23TIMEOUT_ERRa timeout occurred24INVALID_NODE_TYPE_ERRthe supplied node is invalid or has an invalid ancestor for this operation25DATA_CLONE_ERRthe object can not be cloned
0 0
原创粉丝点击