1
0

OCSNotFoundException.php 597 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\AppFramework\OCS;
  7. use Exception;
  8. use OCP\AppFramework\Http;
  9. /**
  10. * Class OCSNotFoundException
  11. *
  12. * @since 9.1.0
  13. */
  14. class OCSNotFoundException extends OCSException {
  15. /**
  16. * OCSNotFoundException constructor.
  17. *
  18. * @param string $message
  19. * @param Exception|null $previous
  20. * @since 9.1.0
  21. */
  22. public function __construct($message = '', ?Exception $previous = null) {
  23. parent::__construct($message, Http::STATUS_NOT_FOUND, $previous);
  24. }
  25. }