We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfcb61 commit 850de50Copy full SHA for 850de50
src/main/java/dev/zarr/zarrjava/v3/Array.java
@@ -212,7 +212,7 @@ boolean chunkIsInArray(long[] chunkCoords) {
212
public ucar.ma2.Array readChunk(long[] chunkCoords)
213
throws ZarrException {
214
if (!chunkIsInArray(chunkCoords)) {
215
- return metadata.allocateFillValueChunk();
+ throw new ZarrException("Attempting to read data outside of the array's domain.");
216
}
217
218
final String[] chunkKeys = metadata.chunkKeyEncoding.encodeChunkKey(chunkCoords);
0 commit comments