Skip to content

Commit 9b8da76

Browse files
committed
Merge branch 'main' into refactor/simplify-indexing
2 parents 16e96dc + 1ab9953 commit 9b8da76

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

changes/3009.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document the changes to `zarr.errors` in the 3.0 migration guide, including the removal of v2 exception classes and the introduction of `NodeNotFoundError`.

docs/user-guide/v3_migration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ the following actions in order:
4747

4848
- The `zarr.v3_api_available` feature flag is being removed. In Zarr-Python 3
4949
the v3 API is always available, so you shouldn't need to use this flag.
50+
- `zarr.errors` has been consolidated. Several exception classes from
51+
Zarr-Python 2 (such as `zarr.errors.PathNotFoundError`) have been removed
52+
or replaced. For example, missing nodes now raise `zarr.errors.NodeNotFoundError`
53+
(which subclasses both `BaseZarrError` and `FileNotFoundError`) instead of
54+
`zarr.errors.PathNotFoundError`. Review any code that catches exceptions
55+
from `zarr.errors` after migrating.
5056
- The following internal modules are being removed or significantly changed. If
5157
your application relies on imports from any of the below modules, you will need
5258
to either a) modify your application to no longer rely on these imports or b)

0 commit comments

Comments
 (0)