zarr.errors#

Exceptions#

BaseZarrError

Base error which all zarr errors are sub-classed from.

ContainsArrayAndGroupError

Raised when both array and group metadata are found at the same path.

ContainsArrayError

Raised when an array already exists at a certain path.

ContainsGroupError

Raised when a group already exists at a certain path.

MetadataValidationError

Raised when the Zarr metadata is invalid in some way

NodeTypeValidationError

Specialized exception when the node_type of the metadata document is incorrect..

Module Contents#

exception zarr.errors.BaseZarrError(*args: Any)[source]#

Bases: ValueError

Base error which all zarr errors are sub-classed from.

exception zarr.errors.ContainsArrayAndGroupError(*args: Any)[source]#

Bases: BaseZarrError

Raised when both array and group metadata are found at the same path.

exception zarr.errors.ContainsArrayError(*args: Any)[source]#

Bases: BaseZarrError

Raised when an array already exists at a certain path.

exception zarr.errors.ContainsGroupError(*args: Any)[source]#

Bases: BaseZarrError

Raised when a group already exists at a certain path.

exception zarr.errors.MetadataValidationError(*args: Any)[source]#

Bases: BaseZarrError

Raised when the Zarr metadata is invalid in some way

exception zarr.errors.NodeTypeValidationError(*args: Any)[source]#

Bases: MetadataValidationError

Specialized exception when the node_type of the metadata document is incorrect..

This can be raised when the value is invalid or unexpected given the context, for example an ‘array’ node when we expected a ‘group’.