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 /lib/private/share20 | |
parent | ce053b980860070957bedb13e6fcd9d45fe50b9b (diff) | |
download | nextcloud-server-4d7130ad315637b7b7b925efce4032472f4530f8.tar.gz nextcloud-server-4d7130ad315637b7b7b925efce4032472f4530f8.zip |
[Share 2.0] Add exceptions to OCP
Diffstat (limited to 'lib/private/share20')
-rw-r--r-- | lib/private/share20/defaultshareprovider.php | 2 | ||||
-rw-r--r-- | lib/private/share20/exception/sharenotfound.php | 25 | ||||
-rw-r--r-- | lib/private/share20/manager.php | 2 |
3 files changed, 2 insertions, 27 deletions
diff --git a/lib/private/share20/defaultshareprovider.php b/lib/private/share20/defaultshareprovider.php index 224dddf4019..7b78be2b61d 100644 --- a/lib/private/share20/defaultshareprovider.php +++ b/lib/private/share20/defaultshareprovider.php @@ -24,7 +24,7 @@ use OCP\Files\File; use OCP\Share\IShareProvider; use OC\Share20\Exception\InvalidShare; use OC\Share20\Exception\ProviderException; -use OC\Share20\Exception\ShareNotFound; +use OCP\Share\Exceptions\ShareNotFound; use OC\Share20\Exception\BackendError; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\NotFoundException; diff --git a/lib/private/share20/exception/sharenotfound.php b/lib/private/share20/exception/sharenotfound.php deleted file mode 100644 index b59f185939a..00000000000 --- a/lib/private/share20/exception/sharenotfound.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * @author Roeland Jago Douma <rullzer@owncloud.com> - * - * @copyright Copyright (c) 2016, ownCloud, Inc. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * 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, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ -namespace OC\Share20\Exception; - -class ShareNotFound extends \Exception { - -} diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php index b22b81bb404..8ea9d10c1cb 100644 --- a/lib/private/share20/manager.php +++ b/lib/private/share20/manager.php @@ -36,7 +36,7 @@ use OCP\Files\File; use OCP\Files\Folder; use OCP\IUser; -use OC\Share20\Exception\ShareNotFound; +use OCP\Share\Exceptions\ShareNotFound; use OC\HintException; /** |