summaryrefslogtreecommitdiffstats
path: root/lib/Exceptions
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-17 09:19:45 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-17 09:19:45 -0100
commitec822a440bbc9b81005921c6430640d5388e5289 (patch)
treed18c239a7dd38679001ffd5747f2b3988aa0b58f /lib/Exceptions
parent1ad4d54ac76c54def69158669dd785dad3d2233e (diff)
cleaning code
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Exceptions')
-rw-r--r--lib/Exceptions/AccountAlreadyExistsException.php30
-rw-r--r--lib/Exceptions/AccountDoesNotExistException.php29
-rw-r--r--lib/Exceptions/ActivityCantBeVerifiedException.php30
-rw-r--r--lib/Exceptions/ActivityPubFormatException.php34
-rw-r--r--lib/Exceptions/ActorDoesNotExistException.php34
-rw-r--r--lib/Exceptions/CacheActorDoesNotExistException.php34
-rw-r--r--lib/Exceptions/CacheContentException.php34
-rw-r--r--lib/Exceptions/CacheContentMimeTypeException.php34
-rw-r--r--lib/Exceptions/CacheDocumentDoesNotExistException.php34
-rw-r--r--lib/Exceptions/DateTimeException.php30
-rw-r--r--lib/Exceptions/EmptyQueueException.php34
-rw-r--r--lib/Exceptions/FollowDoesNotExistException.php34
-rw-r--r--lib/Exceptions/FollowSameAccountException.php34
-rw-r--r--lib/Exceptions/HashtagDoesNotExistException.php34
-rw-r--r--lib/Exceptions/InvalidOriginException.php34
-rw-r--r--lib/Exceptions/InvalidResourceEntryException.php34
-rw-r--r--lib/Exceptions/InvalidResourceException.php34
-rw-r--r--lib/Exceptions/ItemNotFoundException.php34
-rw-r--r--lib/Exceptions/ItemUnknownException.php34
-rw-r--r--lib/Exceptions/LinkedDataSignatureMissingException.php34
-rw-r--r--lib/Exceptions/NoHighPriorityRequestException.php34
-rw-r--r--lib/Exceptions/QueueStatusException.php34
-rw-r--r--lib/Exceptions/RedundancyLimitException.php34
-rw-r--r--lib/Exceptions/RequestContentException.php34
-rw-r--r--lib/Exceptions/RequestNetworkException.php34
-rw-r--r--lib/Exceptions/RequestResultNotJsonException.php34
-rw-r--r--lib/Exceptions/RequestResultSizeException.php34
-rw-r--r--lib/Exceptions/RequestServerException.php34
-rw-r--r--lib/Exceptions/RetrieveAccountFormatException.php34
-rw-r--r--lib/Exceptions/SignatureException.php34
-rw-r--r--lib/Exceptions/SignatureIsGoneException.php34
-rw-r--r--lib/Exceptions/SocialAppConfigException.php34
-rw-r--r--lib/Exceptions/StreamActionDoesNotExistException.php34
-rw-r--r--lib/Exceptions/StreamNotFoundException.php34
-rw-r--r--lib/Exceptions/UrlCloudException.php34
35 files changed, 1142 insertions, 31 deletions
diff --git a/lib/Exceptions/AccountAlreadyExistsException.php b/lib/Exceptions/AccountAlreadyExistsException.php
index 16e22b4a..83b14efc 100644
--- a/lib/Exceptions/AccountAlreadyExistsException.php
+++ b/lib/Exceptions/AccountAlreadyExistsException.php
@@ -1,9 +1,39 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
+
use Exception;
+
class AccountAlreadyExistsException extends Exception {
}
diff --git a/lib/Exceptions/AccountDoesNotExistException.php b/lib/Exceptions/AccountDoesNotExistException.php
index afea5995..4fdeb661 100644
--- a/lib/Exceptions/AccountDoesNotExistException.php
+++ b/lib/Exceptions/AccountDoesNotExistException.php
@@ -1,7 +1,36 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
+
use Exception;
class AccountDoesNotExistException extends Exception {
diff --git a/lib/Exceptions/ActivityCantBeVerifiedException.php b/lib/Exceptions/ActivityCantBeVerifiedException.php
index fdb5c079..4ad00507 100644
--- a/lib/Exceptions/ActivityCantBeVerifiedException.php
+++ b/lib/Exceptions/ActivityCantBeVerifiedException.php
@@ -1,9 +1,39 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
+
use Exception;
+
class ActivityCantBeVerifiedException extends Exception {
}
diff --git a/lib/Exceptions/ActivityPubFormatException.php b/lib/Exceptions/ActivityPubFormatException.php
index 6bdf1646..2e48c9d1 100644
--- a/lib/Exceptions/ActivityPubFormatException.php
+++ b/lib/Exceptions/ActivityPubFormatException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class ActivityPubFormatException extends \Exception {
+
+use Exception;
+
+
+class ActivityPubFormatException extends Exception {
}
diff --git a/lib/Exceptions/ActorDoesNotExistException.php b/lib/Exceptions/ActorDoesNotExistException.php
index 3c903c93..2eb82dc8 100644
--- a/lib/Exceptions/ActorDoesNotExistException.php
+++ b/lib/Exceptions/ActorDoesNotExistException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class ActorDoesNotExistException extends \Exception {
+
+use Exception;
+
+
+class ActorDoesNotExistException extends Exception {
}
diff --git a/lib/Exceptions/CacheActorDoesNotExistException.php b/lib/Exceptions/CacheActorDoesNotExistException.php
index 9fec42a7..f69aa079 100644
--- a/lib/Exceptions/CacheActorDoesNotExistException.php
+++ b/lib/Exceptions/CacheActorDoesNotExistException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class CacheActorDoesNotExistException extends \Exception {
+
+use Exception;
+
+
+class CacheActorDoesNotExistException extends Exception {
}
diff --git a/lib/Exceptions/CacheContentException.php b/lib/Exceptions/CacheContentException.php
index 7ef15f28..134324d2 100644
--- a/lib/Exceptions/CacheContentException.php
+++ b/lib/Exceptions/CacheContentException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class CacheContentException extends \Exception {
+
+use Exception;
+
+
+class CacheContentException extends Exception {
}
diff --git a/lib/Exceptions/CacheContentMimeTypeException.php b/lib/Exceptions/CacheContentMimeTypeException.php
index e7b76e6d..65f0ccd0 100644
--- a/lib/Exceptions/CacheContentMimeTypeException.php
+++ b/lib/Exceptions/CacheContentMimeTypeException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class CacheContentMimeTypeException extends \Exception {
+
+use Exception;
+
+
+class CacheContentMimeTypeException extends Exception {
}
diff --git a/lib/Exceptions/CacheDocumentDoesNotExistException.php b/lib/Exceptions/CacheDocumentDoesNotExistException.php
index 1bc25dda..bf573e6b 100644
--- a/lib/Exceptions/CacheDocumentDoesNotExistException.php
+++ b/lib/Exceptions/CacheDocumentDoesNotExistException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class CacheDocumentDoesNotExistException extends \Exception {
+
+use Exception;
+
+
+class CacheDocumentDoesNotExistException extends Exception {
}
diff --git a/lib/Exceptions/DateTimeException.php b/lib/Exceptions/DateTimeException.php
index 917c07e4..2811a712 100644
--- a/lib/Exceptions/DateTimeException.php
+++ b/lib/Exceptions/DateTimeException.php
@@ -1,9 +1,39 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
+
use Exception;
+
class DateTimeException extends Exception {
}
diff --git a/lib/Exceptions/EmptyQueueException.php b/lib/Exceptions/EmptyQueueException.php
index 1170b586..38db57c3 100644
--- a/lib/Exceptions/EmptyQueueException.php
+++ b/lib/Exceptions/EmptyQueueException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class EmptyQueueException extends \Exception {
+
+use Exception;
+
+
+class EmptyQueueException extends Exception {
}
diff --git a/lib/Exceptions/FollowDoesNotExistException.php b/lib/Exceptions/FollowDoesNotExistException.php
index 359c2a7d..c6d06cc9 100644
--- a/lib/Exceptions/FollowDoesNotExistException.php
+++ b/lib/Exceptions/FollowDoesNotExistException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class FollowDoesNotExistException extends \Exception {
+
+use Exception;
+
+
+class FollowDoesNotExistException extends Exception {
}
diff --git a/lib/Exceptions/FollowSameAccountException.php b/lib/Exceptions/FollowSameAccountException.php
index cdf5140a..45e60605 100644
--- a/lib/Exceptions/FollowSameAccountException.php
+++ b/lib/Exceptions/FollowSameAccountException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Maxence Lange <maxence@artificial-owl.com>
+ * @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
+ * @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\Social\Exceptions;
-class FollowSameAccountException extends \Exception {
+
+use Exception;
+
+
+class FollowSameAccountException extends Exception {
}
diff --git a/lib/Exceptions/HashtagDoesNotExistException.php b/lib/Exceptions/HashtagDoesNotExistException.php
index 9a2c7a09..394c0354 100644
--- a/lib/Exceptions/HashtagDoesNotExistException.php
+++ b/lib/Exceptions/HashtagDoesNotExistException.php
@@ -1,8 +1,40 @@
<?php
+declare(strict_types=1);
+
+
+/**
+ * Nextcloud - Social Support