<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/DOMExceptionCode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@DOMExceptionCode"
  },
  "title" : "DOMExceptionCode"
}
-->

# DOMExceptionCode

```
struct DOMExceptionCode
```

## Topics

### Constants

[`DOM_DOMSTRING_SIZE_ERR`](/documentation/WebKit/DOM_DOMSTRING_SIZE_ERR)

[`DOM_HIERARCHY_REQUEST_ERR`](/documentation/WebKit/DOM_HIERARCHY_REQUEST_ERR)

[`DOM_INDEX_SIZE_ERR`](/documentation/WebKit/DOM_INDEX_SIZE_ERR)

[`DOM_INUSE_ATTRIBUTE_ERR`](/documentation/WebKit/DOM_INUSE_ATTRIBUTE_ERR)

[`DOM_INVALID_ACCESS_ERR`](/documentation/WebKit/DOM_INVALID_ACCESS_ERR)

[`DOM_INVALID_CHARACTER_ERR`](/documentation/WebKit/DOM_INVALID_CHARACTER_ERR)

[`DOM_INVALID_MODIFICATION_ERR`](/documentation/WebKit/DOM_INVALID_MODIFICATION_ERR)

[`DOM_INVALID_STATE_ERR`](/documentation/WebKit/DOM_INVALID_STATE_ERR)

[`DOM_NAMESPACE_ERR`](/documentation/WebKit/DOM_NAMESPACE_ERR)

[`DOM_NOT_FOUND_ERR`](/documentation/WebKit/DOM_NOT_FOUND_ERR)

[`DOM_NOT_SUPPORTED_ERR`](/documentation/WebKit/DOM_NOT_SUPPORTED_ERR)

[`DOM_NO_DATA_ALLOWED_ERR`](/documentation/WebKit/DOM_NO_DATA_ALLOWED_ERR)

[`DOM_NO_MODIFICATION_ALLOWED_ERR`](/documentation/WebKit/DOM_NO_MODIFICATION_ALLOWED_ERR)

[`DOM_SYNTAX_ERR`](/documentation/WebKit/DOM_SYNTAX_ERR)

[`DOM_WRONG_DOCUMENT_ERR`](/documentation/WebKit/DOM_WRONG_DOCUMENT_ERR)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)