<?php

namespace Sabre\DAV\Exception;

use Sabre\DAV;


class TooManyMatches extends Forbidden {

    /**
     * This method allows the exception to include additional information into the WebDAV error response
     *
     * @param DAV\Server $server
     * @param \DOMElement $errorNode
     * @return void
     */
    function serialize(DAV\Server $server,\DOMElement $errorNode) {

        $error = $errorNode->ownerDocument->createElementNS('DAV:','d:number-of-matches-within-limits');
        $errorNode->appendChild($error);

    }

}
