16#ifndef AEONGUI_DOMEXCEPTION_HPP
17#define AEONGUI_DOMEXCEPTION_HPP
20#include "DOMString.hpp"
38 DOMSTRING_SIZE_ERR = 2,
39 HIERARCHY_REQUEST_ERR = 3,
40 WRONG_DOCUMENT_ERR = 4,
41 INVALID_CHARACTER_ERR = 5,
42 NO_DATA_ALLOWED_ERR = 6,
43 NO_MODIFICATION_ALLOWED_ERR = 7,
45 NOT_SUPPORTED_ERR = 9,
46 INUSE_ATTRIBUTE_ERR = 10,
47 INVALID_STATE_ERR = 11,
49 INVALID_MODIFICATION_ERR = 13,
51 INVALID_ACCESS_ERR = 15,
53 TYPE_MISMATCH_ERR = 17,
57 URL_MISMATCH_ERR = 21,
58 QUOTA_EXCEEDED_ERR = 22,
60 INVALID_NODE_TYPE_ERR = 24,
66 const char*
what() const noexcept
override
80 const DOMString&
name()
const
87 unsigned short code()
const
Thrown when an operation is aborted.
Definition DOMException.hpp:332
DOMAbortError(const DOMString &message="", const DOMString &name="Abort error")
Construct a DOMAbortError.
Definition DOMException.hpp:338
Thrown when data cannot be cloned.
Definition DOMException.hpp:392
DOMDataCloneError(const DOMString &message="", const DOMString &name="Data clone error")
Construct a DOMDataCloneError.
Definition DOMException.hpp:398
Base class for all DOM exceptions.
Definition DOMException.hpp:32
unsigned short code() const
Get the numeric exception code.
Definition DOMException.hpp:87
unsigned short mCode
The numeric error code.
Definition DOMException.hpp:101
DOMString mMessage
The error message.
Definition DOMException.hpp:99
const DOMString & name() const
Get the error name.
Definition DOMException.hpp:80
DOMException(unsigned short code, const DOMString &message="", const DOMString &name="Error")
Construct a DOMException.
Definition DOMException.hpp:97
const char * what() const noexcept override
Get the human-readable error name.
Definition DOMException.hpp:66
ExceptionCode
W3C DOM exception codes.
Definition DOMException.hpp:36
DOMString mName
The error name.
Definition DOMException.hpp:100
const DOMString & message() const
Get the error message.
Definition DOMException.hpp:73
Thrown when a node is inserted into an invalid position.
Definition DOMException.hpp:130
DOMHierarchyRequestError(const DOMString &message="", const DOMString &name="Hierarchy request error")
Construct a DOMHierarchyRequestError.
Definition DOMException.hpp:136
Thrown when an attribute is already in use.
Definition DOMException.hpp:214
DOMInUseAttributeError(const DOMString &message="", const DOMString &name="In use attribute error")
Construct a DOMInUseAttributeError.
Definition DOMException.hpp:220
Thrown when an index is out of range.
Definition DOMException.hpp:106
DOMIndexSizeError(const DOMString &message="", const DOMString &name="Index size error")
Construct a DOMIndexSizeError.
Definition DOMException.hpp:112
Thrown when access to an object is denied.
Definition DOMException.hpp:274
DOMInvalidAccessError(const DOMString &message="", const DOMString &name="Invalid access error")
Construct a DOMInvalidAccessError.
Definition DOMException.hpp:280
Thrown when an invalid or illegal character is specified.
Definition DOMException.hpp:154
DOMInvalidCharacterError(const DOMString &message="", const DOMString &name="Invalid character error")
Construct a DOMInvalidCharacterError.
Definition DOMException.hpp:160
Thrown when an invalid modification is attempted.
Definition DOMException.hpp:250
DOMInvalidModificationError(const DOMString &message="", const DOMString &name="Invalid modification error")
Construct a DOMInvalidModificationError.
Definition DOMException.hpp:256
Thrown when an invalid node type is used.
Definition DOMException.hpp:380
DOMInvalidNodeTypeError(const DOMString &message="", const DOMString &name="Invalid node type error")
Construct a DOMInvalidNodeTypeError.
Definition DOMException.hpp:386
Thrown when an object is in an invalid state.
Definition DOMException.hpp:226
DOMInvalidStateError(const DOMString &message="", const DOMString &name="Invalid state error")
Construct a DOMInvalidStateError.
Definition DOMException.hpp:232
Thrown on a namespace error.
Definition DOMException.hpp:262
DOMNamespaceError(const DOMString &message="", const DOMString &name="Namespace error")
Construct a DOMNamespaceError.
Definition DOMException.hpp:268
Thrown on a network error.
Definition DOMException.hpp:321
DOMNetworkError(const DOMString &message="", const DOMString &name="Network error")
Construct a DOMNetworkError.
Definition DOMException.hpp:327
Thrown when data is specified for a node that does not support it.
Definition DOMException.hpp:166
DOMNoDataAllowedError(const DOMString &message="", const DOMString &name="No data allowed error")
Construct a DOMNoDataAllowedError.
Definition DOMException.hpp:172
Thrown when a modification is not allowed.
Definition DOMException.hpp:178
DOMNoModificationAllowedError(const DOMString &message="", const DOMString &name="No modification allowed error")
Construct a DOMNoModificationAllowedError.
Definition DOMException.hpp:184
Thrown when a referenced node does not exist.
Definition DOMException.hpp:190
DOMNotFoundError(const DOMString &message="", const DOMString &name="Not found error")
Construct a DOMNotFoundError.
Definition DOMException.hpp:196
Thrown when a requested operation is not supported.
Definition DOMException.hpp:202
DOMNotSupportedError(const DOMString &message="", const DOMString &name="Not supported error")
Construct a DOMNotSupportedError.
Definition DOMException.hpp:208
Thrown when a storage quota is exceeded.
Definition DOMException.hpp:356
DOMQuotaExceededError(const DOMString &message="", const DOMString &name="Quota exceeded error")
Construct a DOMQuotaExceededError.
Definition DOMException.hpp:362
Thrown on a security violation.
Definition DOMException.hpp:310
DOMSecurityError(const DOMString &message="", const DOMString &name="Security error")
Construct a DOMSecurityError.
Definition DOMException.hpp:316
Thrown when a DOMString exceeds implementation limits.
Definition DOMException.hpp:118
DOMStringSizeError(const DOMString &message="", const DOMString &name="DOM string size error")
Construct a DOMStringSizeError.
Definition DOMException.hpp:124
Thrown when a string does not match expected syntax.
Definition DOMException.hpp:238
DOMSyntaxError(const DOMString &message="", const DOMString &name="Syntax error")
Construct a DOMSyntaxError.
Definition DOMException.hpp:244
Thrown when an operation times out.
Definition DOMException.hpp:368
DOMTimeoutError(const DOMString &message="", const DOMString &name="Timeout error")
Construct a DOMTimeoutError.
Definition DOMException.hpp:374
Thrown on a type mismatch.
Definition DOMException.hpp:298
DOMTypeMismatchError(const DOMString &message="", const DOMString &name="Type mismatch error")
Construct a DOMTypeMismatchError.
Definition DOMException.hpp:304
Thrown when a URL does not match expectations.
Definition DOMException.hpp:344
DOMUrlMismatchError(const DOMString &message="", const DOMString &name="URL mismatch error")
Construct a DOMUrlMismatchError.
Definition DOMException.hpp:350
Thrown when validation fails.
Definition DOMException.hpp:286
DOMValidationError(const DOMString &message="", const DOMString &name="Validation error")
Construct a DOMValidationError.
Definition DOMException.hpp:292
Thrown when a node is used in a different document.
Definition DOMException.hpp:142
DOMWrongDocumentError(const DOMString &message="", const DOMString &name="Wrong document error")
Construct a DOMWrongDocumentError.
Definition DOMException.hpp:148