diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-02 14:07:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-02 14:07:11 +0100 |
commit | 4d7130ad315637b7b7b925efce4032472f4530f8 (patch) | |
tree | 67109fe0af7bf51172e08ea88df2f9f9fd449744 /apps/files_sharing/api | |
parent | ce053b980860070957bedb13e6fcd9d45fe50b9b (diff) | |
download | nextcloud-server-4d7130ad315637b7b7b925efce4032472f4530f8.tar.gz nextcloud-server-4d7130ad315637b7b7b925efce4032472f4530f8.zip |
[Share 2.0] Add exceptions to OCP
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index 8fe8991f9c9..a9f32143776 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -148,7 +148,7 @@ class Share20OCS { // First check if it is an internal share. try { $share = $this->shareManager->getShareById('ocinternal:'.$id); - } catch (\OC\Share20\Exception\ShareNotFound $e) { + } catch (\OCP\Share\Exceptions\ShareNotFound $e) { // Ignore for now //return new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.'); } @@ -178,7 +178,7 @@ class Share20OCS { try { $share = $this->shareManager->getShareById('ocinternal:' . $id); - } catch (\OC\Share20\Exception\ShareNotFound $e) { + } catch (\OCP\Share\Exceptions\ShareNotFound $e) { //Ignore for now //return new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.'); } @@ -443,7 +443,7 @@ class Share20OCS { try { $share = $this->shareManager->getShareById('ocinternal:' . $id); - } catch (\OC\Share20\Exception\ShareNotFound $e) { + } catch (\OCP\Share\Exceptions\ShareNotFound $e) { //Ignore for now //return new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.'); } |