Skip to content

zarr_indexing.errors

zarr_indexing.errors

Canonical index-error types raised by the transform algebra.

These are the authoritative class definitions. zarr.errors re-exports the same objects (from zarr_indexing.errors import ...) so that, e.g., zarr.errors.BoundsCheckError is zarr_indexing.errors.BoundsCheckError. Both subclass the built-in IndexError, so existing except IndexError (or except zarr.errors.BoundsCheckError) catch sites keep working unchanged.

__all__ module-attribute

__all__ = [
    "BoundsCheckError",
    "VindexInvalidSelectionError",
]

BoundsCheckError

Bases: IndexError

Source code in packages/zarr-indexing/src/zarr_indexing/errors.py
class BoundsCheckError(IndexError): ...

VindexInvalidSelectionError

Bases: IndexError

Source code in packages/zarr-indexing/src/zarr_indexing/errors.py
class VindexInvalidSelectionError(IndexError): ...