OCSPreconditionFailedException.php 638 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 OCSPreconditionFailedException
  11. *
  12. * @since 28.0.0
  13. */
  14. class OCSPreconditionFailedException extends OCSException {
  15. /**
  16. * OCSPreconditionFailedException 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_PRECONDITION_FAILED, $previous);
  24. }
  25. }