Replace RuntimeException with IOException

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.
This commit is contained in:
TobiGr 2023-09-17 15:25:47 +02:00
parent 0f42c58409
commit fd19e8e9f7

View file

@ -130,7 +130,7 @@ public class StoredFileHelper implements Serializable {
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;