summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-13 18:03:35 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-02-13 18:03:35 -0600
commit7f73ee0764b0b00e7235a7f6b017cc071cdc0fe7 (patch)
treececb128396af5a801f097fd081d11e9ddf4aaa78 /lib/private/Files
parenta422a59f991daab9f87c628ad678455909d38622 (diff)
downloadnextcloud-server-7f73ee0764b0b00e7235a7f6b017cc071cdc0fe7.tar.gz
nextcloud-server-7f73ee0764b0b00e7235a7f6b017cc071cdc0fe7.zip
Add missing PHPDoc and properly throw exception
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Storage/Common.php5
-rw-r--r--lib/private/Files/Storage/Storage.php1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 0a0604ddd9c..6e5799be34c 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -706,6 +706,7 @@ abstract class Common implements Storage, ILockingStorage {
if ($logger) {
$logger->logException($e);
}
+ throw $e;
}
}
@@ -713,6 +714,7 @@ abstract class Common implements Storage, ILockingStorage {
* @param string $path
* @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
* @param \OCP\Lock\ILockingProvider $provider
+ * @throws \OCP\Lock\LockedException
*/
public function releaseLock($path, $type, ILockingProvider $provider) {
$logger = $this->getLockLogger();
@@ -736,6 +738,7 @@ abstract class Common implements Storage, ILockingStorage {
if ($logger) {
$logger->logException($e);
}
+ throw $e;
}
}
@@ -743,6 +746,7 @@ abstract class Common implements Storage, ILockingStorage {
* @param string $path
* @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
* @param \OCP\Lock\ILockingProvider $provider
+ * @throws \OCP\Lock\LockedException
*/
public function changeLock($path, $type, ILockingProvider $provider) {
$logger = $this->getLockLogger();
@@ -766,6 +770,7 @@ abstract class Common implements Storage, ILockingStorage {
if ($logger) {
$logger->logException($e);
}
+ throw $e;
}
}
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php
index 49a714587a7..281a8284107 100644
--- a/lib/private/Files/Storage/Storage.php
+++ b/lib/private/Files/Storage/Storage.php
@@ -107,6 +107,7 @@ interface Storage extends \OCP\Files\Storage {
* @param string $path The path of the file to release the lock for
* @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
* @param \OCP\Lock\ILockingProvider $provider
+ * @throws \OCP\Lock\LockedException
*/
public function releaseLock($path, $type, ILockingProvider $provider);