void writeBlock(
zarrDatasetAttributes,
dataBlock);
}
- } catch (final IOException | UncheckedIOException e) {
+ } catch (final Throwable e) {
throw new N5IOException(
"Failed to write block " + Arrays.toString(dataBlock.getGridPosition()) + " into dataset " + path,
e);
@@ -567,7 +567,7 @@ public boolean deleteBlock(
try {
if (keyValueAccess.exists(absolutePath))
keyValueAccess.delete(absolutePath);
- } catch (final IOException | UncheckedIOException e) {
+ } catch (final Throwable e) {
throw new N5IOException(
"Failed to delete block " + Arrays.toString(gridPosition) + " from dataset " + path,
e);
@@ -730,7 +730,7 @@ protected static ZarrJsonElements build(final JsonObject obj, final Gson gson )
*
* Used when re-directing attributes to the appropriate zarr metadata files according to
* attribute keys.
- *
+ *
* @param obj the json attributes object
* @param gson the json
* @param mapN5Attributes if true, map n5 attribute keys to corresponding zarr attribute keys
@@ -856,5 +856,4 @@ static void reorder(final JsonArray array) {
array.set(j, a);
}
}
-
}