You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deserializing an empty quoted string *will not* cause an error.
@@ -9,7 +9,7 @@
9
9
-[BREAKING] Fix [#477](https://github.com/biojppm/rapidyaml/issues/477) ([PR#479](https://github.com/biojppm/rapidyaml/pull/479)): changed `read<std::map>()` to overwrite existing entries. The provided implementations had an inconsistency between `std::map` (which wasn't overwriting) and `std::vector` (which *was* overwriting).
- visit error: when visiting a tree (reading or writing). See: `pfn_error_visit`, `ErrorDataVisit`, `ExceptionVisit`, `err_visit_format()`, `sample_error_visit`.
7
+
- basic error: other, non specific errors. See: `pfn_error_basic`, `ErrorDataBasic`, `ExceptionBasic`, `err_basic_format()`, `sample_error_basic`.
8
+
- parse and visit errors/exceptions can be treated/caught as basic errors/exceptions
9
+
- Add message formatting functions to simplify implementation of error callbacks:
10
+
-`err_parse_format()`: format/print a full error message for a parse error
11
+
-`err_visit_format()`: format/print a full error message for a visit error
12
+
-`err_basic_format()`: format/print a full error message for a basic error
13
+
-`location_format()`: format/print a location
14
+
-`location_format_with_context()`: useful to create a rich error message showing the YAML region causing the error, maybe even for a visit error if the source is kept and locations are enabled.
15
+
- See the new header `c4/yml/error.hpp` (and `c4/yml/error.def.hpp` for definitions of the functions in `c4/yml/error.hpp`)
16
+
- See the relevant sample functions in the quickstart sample: `sample_error_basic`, `sample_error_parse` and `sample_error_visit`.
17
+
- There are breaking user-facing changes in the `Callbacks` structure:
18
+
- Removed member `m_error `
19
+
- Added members `m_error_basic`, `m_error_parse`, `m_error_visit`
20
+
- Added methods `.set_error_basic()`, `.set_error_parse()` and `.set_error_visit()`.
3
21
4
-
-[PR#503](https://github.com/biojppm/rapidyaml/pull/503): ensure parse error on `a: b: c` and similar cases containing nested maps opening on the same line.
22
+
23
+
### Fixes
24
+
25
+
-[PR#504](https://github.com/biojppm/rapidyaml/pull/504): ensure parse error on `a: b: c` and similar cases containing nested maps opening on the same line.
5
26
-[PR#502](https://github.com/biojppm/rapidyaml/pull/502): fix parse errors or missing tags:
0 commit comments