00001 #ifndef DOMException_HEADER_GUARD_
00002 #define DOMException_HEADER_GUARD_
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
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #include <xercesc/util/XercesDefs.hpp>
00065
00066 XERCES_CPP_NAMESPACE_BEGIN
00067
00068
00088 class DOMException {
00089 public:
00090
00091
00092
00099 DOMException();
00100
00107 DOMException(short code, const XMLCh *message);
00108
00114 DOMException(const DOMException &other);
00115
00117
00118
00119
00120
00127 virtual ~DOMException();
00129
00130 public:
00131
00132
00133
00210 enum ExceptionCode {
00211 INDEX_SIZE_ERR = 1,
00212 DOMSTRING_SIZE_ERR = 2,
00213 HIERARCHY_REQUEST_ERR = 3,
00214 WRONG_DOCUMENT_ERR = 4,
00215 INVALID_CHARACTER_ERR = 5,
00216 NO_DATA_ALLOWED_ERR = 6,
00217 NO_MODIFICATION_ALLOWED_ERR = 7,
00218 NOT_FOUND_ERR = 8,
00219 NOT_SUPPORTED_ERR = 9,
00220 INUSE_ATTRIBUTE_ERR = 10,
00221 INVALID_STATE_ERR = 11,
00222 SYNTAX_ERR = 12,
00223 INVALID_MODIFICATION_ERR = 13,
00224 NAMESPACE_ERR = 14,
00225 INVALID_ACCESS_ERR = 15,
00226 VALIDATION_ERR = 16
00227 };
00229
00230
00231
00232
00239 ExceptionCode code;
00240
00247 const XMLCh *msg;
00249
00250 private:
00251
00252
00253
00254 DOMException & operator = (const DOMException &);
00255 };
00256
00257 XERCES_CPP_NAMESPACE_END
00258
00259 #endif
00260