Default message for ShareNotFound exception

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2021-04-22 08:48:25 +02:00
parent 3d4929bd57
commit 3612a1097a
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 14 additions and 0 deletions

View File

@ -28,4 +28,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);
}
}