• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[#parsing_error_message]
2[section Parsing error message]
3
4A ['parsing error message] is a
5[link metaprogramming_value template metaprogramming value] with a
6`static std::string get_value()` member function. This function returns the
7pretty-printed version of the error the class represents. For example:
8
9  struct example_error
10  {
11    using type = example_error;
12
13    static std::string get_value()
14    {
15      return "This is a formatted example error."
16    }
17  };
18
19Failing [link parser parser]s return parsing error messages as error messages.
20
21[endsect]
22
23