---
title: DOMExceptionCode
framework: webkit
role: symbol
role_heading: Structure
path: webkit/domexceptioncode
---

# DOMExceptionCode

## Declaration

```swift
struct DOMExceptionCode
```

## Topics

### Constants

- [DOM_DOMSTRING_SIZE_ERR](webkit/dom_domstring_size_err.md)
- [DOM_HIERARCHY_REQUEST_ERR](webkit/dom_hierarchy_request_err.md)
- [DOM_INDEX_SIZE_ERR](webkit/dom_index_size_err.md)
- [DOM_INUSE_ATTRIBUTE_ERR](webkit/dom_inuse_attribute_err.md)
- [DOM_INVALID_ACCESS_ERR](webkit/dom_invalid_access_err.md)
- [DOM_INVALID_CHARACTER_ERR](webkit/dom_invalid_character_err.md)
- [DOM_INVALID_MODIFICATION_ERR](webkit/dom_invalid_modification_err.md)
- [DOM_INVALID_STATE_ERR](webkit/dom_invalid_state_err.md)
- [DOM_NAMESPACE_ERR](webkit/dom_namespace_err.md)
- [DOM_NOT_FOUND_ERR](webkit/dom_not_found_err.md)
- [DOM_NOT_SUPPORTED_ERR](webkit/dom_not_supported_err.md)
- [DOM_NO_DATA_ALLOWED_ERR](webkit/dom_no_data_allowed_err.md)
- [DOM_NO_MODIFICATION_ALLOWED_ERR](webkit/dom_no_modification_allowed_err.md)
- [DOM_SYNTAX_ERR](webkit/dom_syntax_err.md)
- [DOM_WRONG_DOCUMENT_ERR](webkit/dom_wrong_document_err.md)

### Initializers

- [init(_:)](webkit/domexceptioncode/init(_:).md)
- [init(rawValue:)](webkit/domexceptioncode/init(rawvalue:).md)

### Instance Properties

- [rawValue](webkit/domexceptioncode/rawvalue.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)

## See Also

### Data Types

- [DOMTimeStamp](webkit/domtimestamp.md)
- [DOMEventExceptionCode](webkit/domeventexceptioncode.md)
- [DOMRangeExceptionCode](webkit/domrangeexceptioncode.md)
- [DOMXPathExceptionCode](webkit/domxpathexceptioncode.md)
