00001
00002
00007 #ifndef __XML_EXCEPTION_H__
00008 #define __XML_EXCEPTION_H__
00009
00010 #include "libepp_nicbr.H"
00011
00012 #include "GeneralException.H"
00013
00014 LIBEPP_NICBR_NS_BEGIN
00015
00017 class XmlException : public GeneralException
00018 {
00019 public:
00021 enum ExceptionCode {
00022 INVALID_XML_DOCUMENT = 3000,
00023 PARSER_INITIALIZE_EXCEPTION,
00024 UNEXPECTED_PARSER_EXCEPTION,
00025 NULL_XML_DOCUMENT
00026 };
00027
00029
00034 XmlException(const int code, const string &msg,
00035 const string &low_level_msg = "") :
00036 GeneralException(code, msg, low_level_msg) {};
00037
00038
00039 };
00040
00041 LIBEPP_NICBR_NS_END
00042 #endif //__XML_EXCEPTION_H__