diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-07 14:40:12 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:29 +0200 |
commit | 957b27f28267fd95bec9c8a041ca1e7be9d32aa6 (patch) | |
tree | 3b246af7f382572f53624e7afe32bd237da01a09 /lib/public | |
parent | 61485e3e600d5a9359ac215602c4778f00d38823 (diff) | |
download | nextcloud-server-957b27f28267fd95bec9c8a041ca1e7be9d32aa6.tar.gz nextcloud-server-957b27f28267fd95bec9c8a041ca1e7be9d32aa6.zip |
replace \OCP\Federation\Exception\ShareNotFoundException with the generic \OCP\Share\Exception\ShareNotFound exception
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Federation/Exceptions/ShareNotFoundException.php | 29 | ||||
-rw-r--r-- | lib/public/Federation/ICloudFederationProvider.php | 4 | ||||
-rw-r--r-- | lib/public/Share/IShareProvider.php | 3 |
3 files changed, 3 insertions, 33 deletions
diff --git a/lib/public/Federation/Exceptions/ShareNotFoundException.php b/lib/public/Federation/Exceptions/ShareNotFoundException.php deleted file mode 100644 index 6655d5b4430..00000000000 --- a/lib/public/Federation/Exceptions/ShareNotFoundException.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2018 Bjoern Schiessle <bjoern@schiessle.org> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -namespace OCP\Federation\Exceptions; - - -use OC\HintException; - -class ShareNotFoundException extends HintException { - -} diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php index 5260cbf9aa3..49a2b4bc777 100644 --- a/lib/public/Federation/ICloudFederationProvider.php +++ b/lib/public/Federation/ICloudFederationProvider.php @@ -25,7 +25,7 @@ use OCP\Federation\Exceptions\ActionNotSupportedException; use OCP\Federation\Exceptions\AuthenticationFailedException; use OCP\Federation\Exceptions\BadRequestException; use OCP\Federation\Exceptions\ProviderCouldNotAddShareException; -use OCP\Federation\Exceptions\ShareNotFoundException; +use \OCP\Share\Exceptions\ShareNotFound; /** * Interface ICloudFederationProvider @@ -68,7 +68,7 @@ interface ICloudFederationProvider { * @param array $notification provider specific notification * @return array $data send back to sender * - * @throws ShareNotFoundException + * @throws ShareNotFound * @throws ActionNotSupportedException * @throws BadRequestException * @throws AuthenticationFailedException diff --git a/lib/public/Share/IShareProvider.php b/lib/public/Share/IShareProvider.php index bcb12de8b84..4a1ac9b8b8d 100644 --- a/lib/public/Share/IShareProvider.php +++ b/lib/public/Share/IShareProvider.php @@ -24,7 +24,6 @@ namespace OCP\Share; -use OCP\Federation\Exceptions\ShareNotFoundException; use OCP\Files\Folder; use OCP\Files\Node; @@ -125,7 +124,7 @@ interface IShareProvider { * @param int $id * @param string|null $recipientId * @return \OCP\Share\IShare - * @throws ShareNotFoundException + * @throws ShareNotFound * @since 9.0.0 */ public function getShareById($id, $recipientId = null); |