+/** Exception raised when something is going wrong during the parsing of XML files */
+class ParseError : public Exception {
+public:
+ ParseError(const std::string& file, int line, const std::string& msg)
+ : Exception(XBT_THROW_POINT, xbt::string_printf("Parse error at %s:%d: %s", file.c_str(), line, msg.c_str()))
+ {
+ }
+};
+