summaryrefslogtreecommitdiffstats
path: root/lib/public/Federation
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Federation')
-rw-r--r--lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php6
-rw-r--r--lib/public/Federation/ICloudFederationProvider.php12
2 files changed, 11 insertions, 7 deletions
diff --git a/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php b/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
index b608437aa3c..205206d5af8 100644
--- a/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
+++ b/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
@@ -22,7 +22,13 @@
namespace OCP\Federation\Exceptions;
use OC\HintException;
+use OCP\AppFramework\Http;
class ProviderCouldNotAddShareException extends HintException {
+ public function __construct($message, $hint = '', $code = Http::STATUS_BAD_REQUEST, \Exception $previous = null) {
+ parent::__construct($message, $hint, $code, $previous);
+ }
+
+
}
diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php
index 4c11fc20397..535f61aae89 100644
--- a/lib/public/Federation/ICloudFederationProvider.php
+++ b/lib/public/Federation/ICloudFederationProvider.php
@@ -21,6 +21,7 @@
namespace OCP\Federation;
+use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
use OCP\Federation\Exceptions\ShareNotFoundException;
/**
@@ -36,16 +37,11 @@ use OCP\Federation\Exceptions\ShareNotFoundException;
interface ICloudFederationProvider {
/**
- * ICloudFederationProvider constructor.
- *
- * @param $shareType define the share type, handled by this provider
- */
- public function __construct($shareType);
-
- /**
* get the name of the share type, handled by this provider
*
* @return string
+ *
+ * @since 14.0.0
*/
public function getShareType();
@@ -62,6 +58,8 @@ interface ICloudFederationProvider {
* @param ICloudFederationShare $share
* @return string provider specific unique ID of the share
*
+ * @throws ProviderCouldNotAddShareException
+ *
* @since 14.0.0
*/
public function shareReceived(ICloudFederationShare $share);