Default message for ShareNotFound exception

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/29225/head
John Molakvoæ (skjnldsv) 3 years ago committed by backportbot[bot]
parent f70c17cbcf
commit 1cf4e4999e

@ -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);
}
}

Loading…
Cancel
Save