UnsupportedLimitOnInitialSyncException.php 613 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\DAV\Exception;
  7. use Sabre\DAV\Exception\InsufficientStorage;
  8. use Sabre\DAV\Server;
  9. /**
  10. * Class UnsupportedLimitOnInitialSyncException
  11. *
  12. * @package OCA\DAV\Exception
  13. */
  14. class UnsupportedLimitOnInitialSyncException extends InsufficientStorage {
  15. /**
  16. * @inheritDoc
  17. */
  18. public function serialize(Server $server, \DOMElement $errorNode) {
  19. $errorNode->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:number-of-matches-within-limits'));
  20. }
  21. }