00001 #ifndef DOMError_HEADER_GUARD_
00002 #define DOMError_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
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098 #include <xercesc/util/XercesDefs.hpp>
00099
00100 XERCES_CPP_NAMESPACE_BEGIN
00101
00102 class DOMLocator;
00103
00104
00112 class DOMError
00113 {
00114 protected:
00115
00116
00117
00120 DOMError() {};
00122
00123 private:
00124
00125
00126
00129 DOMError(const DOMError &);
00130 DOMError & operator = (const DOMError &);
00132
00133 public:
00134
00135
00136
00143 virtual ~DOMError() {};
00145
00146
00147
00148
00156 enum ErrorSeverity
00157 {
00158 DOM_SEVERITY_WARNING = 0,
00159 DOM_SEVERITY_ERROR = 1,
00160 DOM_SEVERITY_FATAL_ERROR = 2
00161 };
00163
00164
00165
00166
00167
00170
00171
00172
00181 virtual short getSeverity() const = 0;
00182
00191 virtual const XMLCh* getMessage() const = 0;
00192
00201 virtual DOMLocator* getLocation() const = 0;
00202
00211 virtual void* getRelatedException() const = 0;
00212
00230 virtual const XMLCh* getType() const = 0;
00231
00240 virtual void* getRelatedData() const = 0;
00241
00242
00243
00244
00245
00255 virtual void setSeverity(const short severity) = 0;
00256
00266 virtual void setMessage(const XMLCh* const message) = 0;
00267
00277 virtual void setLocation(DOMLocator* const location) = 0;
00278
00288 virtual void setRelatedException(void* exc) const = 0;
00289
00307 virtual void setType(const XMLCh* type) = 0;
00308
00317 virtual void setRelatedData(void* relatedData) = 0;
00318
00320
00321 };
00322
00323 XERCES_CPP_NAMESPACE_END
00324
00325 #endif