From 7ad298185ad8ef9e8eb9be89ff56edd62b109ad7 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Wed, 27 May 2026 09:58:27 +1200 Subject: [PATCH] docs: add NodeTypeError and RoutingError to README error hierarchy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 28fc626..a98ce3a 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,8 @@ All yamltrip errors inherit from `YAMLTripError`: - **`PatchError`**: mutation operation failed. - **`KeyExistsError`**: `add()` target already exists. - **`KeyMissingError`**: `replace()` target does not exist. + - **`RoutingError`**: path passes through a non-mapping node (scalar or list). + - **`NodeTypeError`** (`PatchError` + `TypeError`): node is the wrong type for the operation (e.g. appending to a scalar). ## Limitations