aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-04-22 08:48:25 +0200
committerJohn Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com>2021-08-18 12:47:11 +0000
commite3fa68682dc7f6c154f6ccedaab311ef4be82804 (patch)
tree7205060826e26ebd359b3f3fd1775f84006737b8 /lib/public/Share
parent18f8fabd5a67cde220688d97cc0bf8c2f1c4b2e3 (diff)
downloadnextcloud-server-e3fa68682dc7f6c154f6ccedaab311ef4be82804.tar.gz
nextcloud-server-e3fa68682dc7f6c154f6ccedaab311ef4be82804.zip
Default message for ShareNotFound exception
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public/Share')
-rw-r--r--lib/public/Share/Exceptions/ShareNotFound.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/Share/Exceptions/ShareNotFound.php b/lib/public/Share/Exceptions/ShareNotFound.php
index 6e4dd2677ae..66827b4d179 100644
--- a/lib/public/Share/Exceptions/ShareNotFound.php
+++ b/lib/public/Share/Exceptions/ShareNotFound.php
@@ -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);
+ }
}