class sax_exception : public ::std::string
{
public:
+ sax_exception() : ::std::string("XML SAX Error.") {}
sax_exception(::std::string &s) : ::std::string(s) {}
sax_exception(const char* msg) : ::std::string(msg) {}
};
class sax_parse_error : public sax_exception
{
public:
+ sax_parse_error() : sax_exception("XML Parse Error.") {}
sax_parse_error(::std::string &s) : sax_exception(s) {}
sax_parse_error(const char* msg) : sax_exception(msg) {}
};
};*/
typedef lexical::rule::work_iterator<
- lexical::rule::false_ret_to_exception<_rule, xml_illegal_terminated> > sax, sax_parser;
+ lexical::rule::false_ret_to_exception<_rule, sax_parse_error> > sax, sax_parser;
//////////////////////////////////////////////////////////////////////////////////////////
}