Skip to content

Commit b7bdbbf

Browse files
committed
Default message for ShareNotFound exception
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 163c1b7 commit b7bdbbf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/public/Share/Exceptions/ShareNotFound.php

+14
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,18 @@
2828
* @since 9.0.0
2929
*/
3030
class ShareNotFound extends GenericShareException {
31+
32+
/**
33+
* @param string $message
34+
* @param string $hint
35+
* @param int $code
36+
* @param \Exception|null $previous
37+
* @since 9.0.0
38+
*/
39+
public function __construct($message = '', ...$arguments) {
40+
if (empty($message)) {
41+
$message = 'Share not found';
42+
}
43+
parent::__construct($message, ...$arguments);
44+
}
3145
}

0 commit comments

Comments
 (0)