]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # <small>nlohmann::json_sax::</small>parse_error |
2 | ||
3 | ```cpp | |
4 | virtual bool parse_error(std::size_t position, | |
5 | const std::string& last_token, | |
6 | const detail::exception& ex) = 0; | |
7 | ``` | |
8 | ||
9 | A parse error occurred. | |
10 | ||
11 | ## Parameters | |
12 | ||
13 | `position` (in) | |
14 | : the position in the input where the error occurs | |
15 | ||
16 | `last_token` (in) | |
17 | : the last read token | |
18 | ||
19 | `ex` (in) | |
20 | : an exception object describing the error | |
21 | ||
22 | ## Return value | |
23 | ||
24 | Whether parsing should proceed (**must return `#!cpp false`**). | |
25 | ||
26 | ## Version history | |
27 | ||
28 | - Added in version 3.2.0. |