Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-10-11 20:44:20 +0300
committerdartcafe <github@dartcafe.de>2020-10-11 20:44:20 +0300
commit276903b5902471099244ae600ae0e51e115189de (patch)
tree87ba796ce06d717092cf762fd241c22c498779e1 /lib/Exceptions/ShareAlreadyExists.php
parent6065df0585e052f837edfa117e45191eda2eb921 (diff)
refactoring invitations1.6-circles-alpha4
Diffstat (limited to 'lib/Exceptions/ShareAlreadyExists.php')
-rw-r--r--lib/Exceptions/ShareAlreadyExists.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/Exceptions/ShareAlreadyExists.php b/lib/Exceptions/ShareAlreadyExists.php
new file mode 100644
index 00000000..d63c8af1
--- /dev/null
+++ b/lib/Exceptions/ShareAlreadyExists.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * @copyright Copyright (c) 2020 René Gieling <github@dartcafe.de>
+ *
+ * @author René Gieling <github@dartcafe.de>
+ *
+ * @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 OCA\Polls\Exceptions;
+
+use OCP\AppFramework\Http;
+
+class ShareAlreadyExists extends \Exception {
+ /**
+ * TooShortException Constructor
+ * @param string $e exception message
+ */
+ public function __construct($e = 'Share already exists') {
+ parent::__construct($e);
+ }
+ public function getStatus() {
+ return Http::STATUS_OK;
+ }
+}