1
0

SabrePluginException.php 454 B

12345678910111213141516171819202122232425
  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;
  8. use Sabre\DAV\Exception;
  9. /**
  10. * @since 8.2.0
  11. */
  12. class SabrePluginException extends Exception {
  13. /**
  14. * Returns the HTTP statuscode for this exception
  15. *
  16. * @return int
  17. * @since 8.2.0
  18. */
  19. public function getHTTPCode() {
  20. return $this->code;
  21. }
  22. }