diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-08-27 14:45:12 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-08-27 14:45:12 +0000 |
| commit | b2492ac77cf64819a59c7e6e3d0906d52c8b8571 (patch) | |
| tree | 0a012bf469cb3ec4cb7534c5f798daa774910904 /src | |
| parent | New files. These will be the basis for ECMA-DOM binding using Spidermonkey. (diff) | |
| download | inkscape-b2492ac77cf64819a59c7e6e3d0906d52c8b8571.tar.gz inkscape-b2492ac77cf64819a59c7e6e3d0906d52c8b8571.zip | |
domexception enums should be class scoped
(bzr r1643)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dom/dom.h | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/src/dom/dom.h b/src/dom/dom.h index 6741d375d..64f1e6dde 100644 --- a/src/dom/dom.h +++ b/src/dom/dom.h @@ -141,6 +141,32 @@ class DOMException public: + /** + * ExceptionCode + */ + typedef enum + { + INDEX_SIZE_ERR = 1, + DOMSTRING_SIZE_ERR = 2, + HIERARCHY_REQUEST_ERR = 3, + WRONG_DOCUMENT_ERR = 4, + INVALID_CHARACTER_ERR = 5, + NO_DATA_ALLOWED_ERR = 6, + NO_MODIFICATION_ALLOWED_ERR = 7, + NOT_FOUND_ERR = 8, + NOT_SUPPORTED_ERR = 9, + INUSE_ATTRIBUTE_ERR = 10, + INVALID_STATE_ERR = 11, + SYNTAX_ERR = 12, + INVALID_MODIFICATION_ERR = 13, + NAMESPACE_ERR = 14, + INVALID_ACCESS_ERR = 15, + VALIDATION_ERR = 16, + TYPE_MISMATCH_ERR = 17 + } ExceptionCode; + + + DOMException(const DOMString &reasonMsg) { msg = reasonMsg; } @@ -176,29 +202,6 @@ public: -/** - * ExceptionCode - */ -typedef enum -{ - INDEX_SIZE_ERR = 1, - DOMSTRING_SIZE_ERR = 2, - HIERARCHY_REQUEST_ERR = 3, - WRONG_DOCUMENT_ERR = 4, - INVALID_CHARACTER_ERR = 5, - NO_DATA_ALLOWED_ERR = 6, - NO_MODIFICATION_ALLOWED_ERR = 7, - NOT_FOUND_ERR = 8, - NOT_SUPPORTED_ERR = 9, - INUSE_ATTRIBUTE_ERR = 10, - INVALID_STATE_ERR = 11, - SYNTAX_ERR = 12, - INVALID_MODIFICATION_ERR = 13, - NAMESPACE_ERR = 14, - INVALID_ACCESS_ERR = 15, - VALIDATION_ERR = 16, - TYPE_MISMATCH_ERR = 17 -} ExceptionCode; /*######################################################################### |
