| Home | Libraries | People | FAQ | More

## Struct rethrow_error_handler

boost::parser::rethrow_error_handler

## Synopsis

    // 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;
    };

## Description

An error handler that just re-throws any exception generated by the parse.

### `rethrow_error_handler` public member functions

1.     template<typename Iter, typename Sentinel>
         error_handler_result
         operator()(Iter first, Sentinel last, parse_error< Iter > const & e) const;

2.     template<typename Context, typename Iter>
         void diagnose(diagnostic_kind kind, std::string_view message,
                       Context const & context, Iter it) const;

3.     template<typename Context>
         void diagnose(diagnostic_kind kind, std::string_view message,
                       Context const & context) const;