Skip to content

Commit 239d82c

Browse files
committed
doc: throws N5IoException for openExistingWriter
1 parent a46b893 commit 239d82c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/org/janelia/saalfeldlab/n5/universe/N5Factory.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,10 @@ public N5Writer openWriter(@Nullable final StorageFormat storage, final KeyValue
701701
* @param access to the key-value backend
702702
* @param location root URI of the container
703703
* @return a writer for the existing container
704+
*
705+
* @throws N5IOException if the container does not exist, no attempt will be made to create it
704706
*/
705-
public N5Writer openExistingWriter(@Nullable final StorageFormat storage, final KeyValueAccess access, final URI location) {
707+
public N5Writer openExistingWriter(@Nullable final StorageFormat storage, final KeyValueAccess access, final URI location) throws N5IOException {
706708

707709
requireContainerExists(() -> openReader(storage, access, location));
708710
return openWriter(storage, access, location);
@@ -716,8 +718,10 @@ public N5Writer openExistingWriter(@Nullable final StorageFormat storage, final
716718
*
717719
* @param uri the container location, optionally prefixed with a storage format
718720
* @return a writer for the existing container
721+
*
722+
* @throws N5IOException if the container does not exist, no attempt will be made to create it
719723
*/
720-
public N5Writer openExistingWriter(final String uri) {
724+
public N5Writer openExistingWriter(final String uri) throws N5IOException {
721725

722726
requireContainerExists(() -> openReader(uri));
723727
return openWriter(uri);

0 commit comments

Comments
 (0)