dom_exception.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 #ifndef _DOM_DOMException_h_
00030 #define _DOM_DOMException_h_
00031 
00032 #include <dom/dom_misc.h>
00033 
00034 namespace DOM {
00035 
00036 
00057 class DOMException
00058 {
00059 public:
00060     DOMException(unsigned short _code) { code = _code; }
00061     DOMException(const DOMException &other) { code = other.code; }
00062 
00063     DOMException & operator = (const DOMException &other)
00064     { code = other.code; return *this; }
00065 
00066     virtual ~DOMException() {}
00071     enum ExceptionCode {
00072         INDEX_SIZE_ERR = 1,
00073         DOMSTRING_SIZE_ERR = 2,
00074         HIERARCHY_REQUEST_ERR = 3,
00075         WRONG_DOCUMENT_ERR = 4,
00076         INVALID_CHARACTER_ERR = 5,
00077         NO_DATA_ALLOWED_ERR = 6,
00078         NO_MODIFICATION_ALLOWED_ERR = 7,
00079         NOT_FOUND_ERR = 8,
00080         NOT_SUPPORTED_ERR = 9,
00081         INUSE_ATTRIBUTE_ERR = 10,
00082         INVALID_STATE_ERR = 11,
00083         SYNTAX_ERR = 12,
00084         INVALID_MODIFICATION_ERR = 13,
00085         NAMESPACE_ERR = 14,
00086         INVALID_ACCESS_ERR = 15
00087     };
00088     unsigned short code;
00089 };
00090 
00091 } 
00092 #endif
 
This file is part of the documentation for khtml Library Version 3.2.0.