Skip to content

Commit

Permalink
Default message for ShareNotFound exception
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Apr 22, 2021
1 parent 163c1b7 commit b7bdbbf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/public/Share/Exceptions/ShareNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,18 @@
* @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);
}
}

0 comments on commit b7bdbbf

Please sign in to comment.