![]() |
Home | Libraries | People | FAQ | More |
boost::parser::rethrow_error_handler
// In header: <boost/parser/error_handling.hpp> struct rethrow_error_handler { // public member functions template<typename Iter, typename Sentinel> error_handler_result operator()(Iter, Sentinel, parse_error< Iter > const &) const; template<typename Context, typename Iter> void diagnose(diagnostic_kind, std::string_view, Context const &, Iter) const; template<typename Context> void diagnose(diagnostic_kind, std::string_view, Context const &) const; };
An error handler that just re-throws any exception generated by the parse.
rethrow_error_handler
public member functionstemplate<typename Iter, typename Sentinel> error_handler_result operator()(Iter first, Sentinel last, parse_error< Iter > const & e) const;
template<typename Context, typename Iter> void diagnose(diagnostic_kind kind, std::string_view message, Context const & context, Iter it) const;
template<typename Context> void diagnose(diagnostic_kind kind, std::string_view message, Context const & context) const;