ShareNotFound.php 630 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Share\Exceptions;
  8. /**
  9. * Class ShareNotFound
  10. *
  11. * @since 9.0.0
  12. */
  13. class ShareNotFound extends GenericShareException {
  14. /**
  15. * @param string $message
  16. * @param string $hint
  17. * @param int $code
  18. * @param \Exception|null $previous
  19. * @since 9.0.0
  20. */
  21. public function __construct($message = '', ...$arguments) {
  22. if (empty($message)) {
  23. $message = 'Share not found';
  24. }
  25. parent::__construct($message, ...$arguments);
  26. }
  27. }