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
00030 #ifndef _DOM_DOMException_h_
00031 #define _DOM_DOMException_h_
00032
00033 #include <dom/dom_misc.h>
00034
00035 namespace DOM {
00036
00037
00058 class DOMException
00059 {
00060 public:
00061 DOMException(unsigned short _code) { code = _code; }
00062 DOMException(const DOMException &other) { code = other.code; }
00063
00064 DOMException & operator = (const DOMException &other)
00065 { code = other.code; return *this; }
00066
00067 virtual ~DOMException() {}
00072 enum ExceptionCode {
00073 INDEX_SIZE_ERR = 1,
00074 DOMSTRING_SIZE_ERR = 2,
00075 HIERARCHY_REQUEST_ERR = 3,
00076 WRONG_DOCUMENT_ERR = 4,
00077 INVALID_CHARACTER_ERR = 5,
00078 NO_DATA_ALLOWED_ERR = 6,
00079 NO_MODIFICATION_ALLOWED_ERR = 7,
00080 NOT_FOUND_ERR = 8,
00081 NOT_SUPPORTED_ERR = 9,
00082 INUSE_ATTRIBUTE_ERR = 10,
00083 INVALID_STATE_ERR = 11,
00084 SYNTAX_ERR = 12,
00085 INVALID_MODIFICATION_ERR = 13,
00086 NAMESPACE_ERR = 14,
00087 INVALID_ACCESS_ERR = 15
00088 };
00089 unsigned short code;
00090 };
00091
00092 };
00093 #endif
This file is part of the documentation for kdelibs Version 3.1.0.