summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/ObjectStore/Swift.php1
-rw-r--r--lib/public/Files/ObjectStore/IObjectStore.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/Swift.php b/lib/private/Files/ObjectStore/Swift.php
index 667b92bd1d6..e379e54d018 100644
--- a/lib/private/Files/ObjectStore/Swift.php
+++ b/lib/private/Files/ObjectStore/Swift.php
@@ -86,6 +86,7 @@ class Swift implements IObjectStore {
* @param string $urn the unified resource name used to identify the object
* @return resource stream with the read data
* @throws \Exception from openstack lib when something goes wrong
+ * @throws NotFoundException if file does not exist
*/
public function readObject($urn) {
try {
diff --git a/lib/public/Files/ObjectStore/IObjectStore.php b/lib/public/Files/ObjectStore/IObjectStore.php
index 8e9df5a55a3..628fd5852da 100644
--- a/lib/public/Files/ObjectStore/IObjectStore.php
+++ b/lib/public/Files/ObjectStore/IObjectStore.php
@@ -23,6 +23,8 @@
*/
namespace OCP\Files\ObjectStore;
+use OCP\Files\NotFoundException;
+
/**
* Interface IObjectStore
*
@@ -41,6 +43,7 @@ interface IObjectStore {
* @param string $urn the unified resource name used to identify the object
* @return resource stream with the read data
* @throws \Exception when something goes wrong, message will be logged
+ * @throws NotFoundException if file does not exist
* @since 7.0.0
*/
public function readObject($urn);