]> source.dussan.org Git - nextcloud-server.git/commitdiff
Default message for ShareNotFound exception 29225/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Thu, 22 Apr 2021 06:48:25 +0000 (08:48 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 13 Oct 2021 22:48:09 +0000 (22:48 +0000)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
lib/public/Share/Exceptions/ShareNotFound.php

index 6e4dd2677ae7efc908eed4821557843c00a24d57..66827b4d179053c9ac5c2e99dec0f054bb18983b 100644 (file)
@@ -27,4 +27,18 @@ namespace OCP\Share\Exceptions;
  * @since 9.0.0
  */
 class ShareNotFound extends GenericShareException {
+
+       /**
+        * @param string $message
+        * @param string $hint
+        * @param int $code
+        * @param \Exception|null $previous
+        * @since 9.0.0
+        */
+       public function __construct($message = '', ...$arguments) {
+               if (empty($message)) {
+                       $message = 'Share not found';
+               }
+               parent::__construct($message, ...$arguments);
+       }
 }