00001 #ifndef XMLPARSEREXCEPTIONS_H_ 00002 #define XMLPARSEREXCEPTIONS_H_ 00003 00004 #include <stdexcept> 00005 00008 class MissingXMLElementException: public std::exception 00009 { 00010 virtual const char* what() const throw() 00011 { 00012 return "One or more elements are missing or malformed in the XML string."; 00013 } 00014 }; 00015 00016 #endif /* XMLPARSEREXCEPTIONS_H_ */