diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-07 15:40:12 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 12:29:29 +0300 |
commit | 957b27f28267fd95bec9c8a041ca1e7be9d32aa6 (patch) | |
tree | 3b246af7f382572f53624e7afe32bd237da01a09 /lib/public/Federation | |
parent | 61485e3e600d5a9359ac215602c4778f00d38823 (diff) |
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/Federation')
-rw-r--r-- | lib/public/Federation/Exceptions/ShareNotFoundException.php | 29 | ||||
-rw-r--r-- | lib/public/Federation/ICloudFederationProvider.php | 4 |
2 files changed, 2 insertions, 31 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 |