Default message for ShareNotFound exception
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
3d4929bd57
commit
3612a1097a
|
@ -28,4 +28,18 @@ namespace OCP\Share\Exceptions;
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
class ShareNotFound extends GenericShareException {
|
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…
Reference in New Issue