Ejemplo n.º 1
0
 virtual void error(const std::string& error_code,
                    const std::string& message,
                    const parsing_context& context) throw(json_parse_exception)
 {
     BOOST_CHECK(error_code == error_code_);
     throw json_parse_exception(message,context.line_number(),context.column_number());
 }
Ejemplo n.º 2
0
 virtual void fatal_error(const std::string& error_code,
                          const std::string& message,
                          const parsing_context& context) throw(json_parse_exception)
 {
     if (error_code != fatal_error_code_)
     {
         std::cout << error_code << " " << message << std::endl;
     }
     BOOST_CHECK(error_code == fatal_error_code_);
     throw json_parse_exception(message,context.line_number(),context.column_number());
 }