File: jmespath_error.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (41 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
### jsoncons::jmespath::jmespath_error

```cpp
#include <jsoncons_ext/jmespath/jmespath_error.hpp>
```

<br>

`jsoncons::jmespath::jmespath_error` defines an exception type for reporting failures in jmespath queries.

![jmespath_error](./diagrams/jmespath_error.png)

#### Constructors
```cpp
jmespath_error(std::error_code ec);

jmespath_error(std::error_code ec, std::size_t line, std::size_t column);

jmespath_error(const jmespath_error& other);
```
#### Member functions

    std::size_t line() const noexcept
Returns the line number to the end of the text where the exception occurred.
Line numbers start at 1.

    std::size_t column() const noexcept
Returns the column number to the end of the text where the exception occurred.
Column numbers start at 1.

    const char* what() const noexcept
Constructs an error message, including line and column position

#### Inherited from std::system_error

    const std::error_code code() const noexcept
Returns an error code for this exception

### Example