Skip to content

Commit

Permalink
Replace RuntimeException with IOException
Browse files Browse the repository at this point in the history
The RuntimeException was not explicitly declared and thus not caught at every call of this constructor. This change ensures that this possible exception is handled by the dedicated error handlers.
  • Loading branch information
TobiGr committed Sep 17, 2023
1 parent 93a2300 commit 0c2507d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public StoredFileHelper(final Context context, @Nullable final Uri parent,
final DocumentFile file = DocumentFile.fromSingleUri(context, path);

if (file == null) {
throw new RuntimeException("SAF not available");
throw new IOException("SAF not available");
}

this.context = context;
Expand Down

0 comments on commit 0c2507d

Please sign in to comment.