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 /apps/cloud_federation_api/lib | |
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 'apps/cloud_federation_api/lib')
-rw-r--r-- | apps/cloud_federation_api/lib/Controller/RequestHandlerController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php index a7601d1ce18..f79b7747700 100644 --- a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php +++ b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php @@ -31,7 +31,6 @@ 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\Federation\ICloudFederationFactory; use OCP\Federation\ICloudFederationProviderManager; use OCP\Federation\Exceptions\ProviderDoesNotExistsException; @@ -40,6 +39,7 @@ use OCP\ILogger; use OCP\IRequest; use OCP\IURLGenerator; use OCP\IUserManager; +use OCP\Share\Exceptions\ShareNotFound; /** @@ -234,7 +234,7 @@ class RequestHandlerController extends Controller { ['message' => $e->getMessage()], Http::STATUS_BAD_REQUEST ); - } catch (ShareNotFoundException $e) { + } catch (ShareNotFound $e) { return new JSONResponse( ['message' => $e->getMessage()], Http::STATUS_BAD_REQUEST |