summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-01 14:35:44 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-01 14:36:06 +0200
commit1c43081d3819ab360fad3f44b6cf2cd8d2cf25a9 (patch)
tree3407ad51fb8ffd7d911083066ed1796685b5f6f5 /lib/public/files
parent99960d774750ae836697f8191504341f3a6418b6 (diff)
downloadnextcloud-server-1c43081d3819ab360fad3f44b6cf2cd8d2cf25a9.tar.gz
nextcloud-server-1c43081d3819ab360fad3f44b6cf2cd8d2cf25a9.zip
Detect removed public shares
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/storageinvalidexception.php22
-rw-r--r--lib/public/files/storagenotavailableexception.php3
2 files changed, 25 insertions, 0 deletions
diff --git a/lib/public/files/storageinvalidexception.php b/lib/public/files/storageinvalidexception.php
new file mode 100644
index 00000000000..7419ccc1d11
--- /dev/null
+++ b/lib/public/files/storageinvalidexception.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+/**
+ * Public interface of ownCloud for apps to use.
+ * Files/AlreadyExistsException class
+ */
+
+// use OCP namespace for all classes that are considered public.
+// This means that they should be used by apps instead of the internal ownCloud classes
+namespace OCP\Files;
+
+/**
+ * Storage has invalid configuration
+ */
+class StorageInvalidException extends \Exception {
+}
diff --git a/lib/public/files/storagenotavailableexception.php b/lib/public/files/storagenotavailableexception.php
index fcc0c9cacfe..b526cb4ea0f 100644
--- a/lib/public/files/storagenotavailableexception.php
+++ b/lib/public/files/storagenotavailableexception.php
@@ -15,5 +15,8 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP\Files;
+/**
+ * Storage is temporarily not available
+ */
class StorageNotAvailableException extends \Exception {
}