StrictCookieMissingException.php 650 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\AppFramework\Middleware\Security\Exceptions;
  8. use OCP\AppFramework\Http;
  9. /**
  10. * Class StrictCookieMissingException is thrown when the strict cookie has not
  11. * been sent with the request but is required.
  12. *
  13. * @package OC\AppFramework\Middleware\Security\Exceptions
  14. */
  15. class StrictCookieMissingException extends SecurityException {
  16. public function __construct() {
  17. parent::__construct('Strict Cookie has not been found in request.', Http::STATUS_PRECONDITION_FAILED);
  18. }
  19. }