summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-13 11:40:59 +0200
committerGitHub <noreply@github.com>2021-10-13 11:40:59 +0200
commitb585cf1ea1baeb7bbfaf22953e48bbd33e8381fa (patch)
treef21d9aa66d284dfbb3bb3445a471429e1a4d112e /lib/public
parent4cae2cc06cdaadb797ab6bedc6dc4da8b90f85c9 (diff)
parente3fa68682dc7f6c154f6ccedaab311ef4be82804 (diff)
downloadnextcloud-server-b585cf1ea1baeb7bbfaf22953e48bbd33e8381fa.tar.gz
nextcloud-server-b585cf1ea1baeb7bbfaf22953e48bbd33e8381fa.zip
Merge pull request #26688 from nextcloud/enh/better-share-exceptiondebug
Diffstat (limited to 'lib/public')
-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);
+ }
}