Skip to content

Commit 7ad2981

Browse files
docs: add NodeTypeError and RoutingError to README error hierarchy
1 parent 0ba93e3 commit 7ad2981

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ All yamltrip errors inherit from `YAMLTripError`:
117117
- **`PatchError`**: mutation operation failed.
118118
- **`KeyExistsError`**: `add()` target already exists.
119119
- **`KeyMissingError`**: `replace()` target does not exist.
120+
- **`RoutingError`**: path passes through a non-mapping node (scalar or list).
121+
- **`NodeTypeError`** (`PatchError` + `TypeError`): node is the wrong type for the operation (e.g. appending to a scalar).
120122

121123
## Limitations
122124

0 commit comments

Comments
 (0)