4 * LockTokenMatchesRequestUri
6 * This exception is thrown by UNLOCK if a supplied lock-token is invalid
10 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
11 * @author Evert Pot (http://www.rooftopsolutions.nl/)
12 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
14 class Sabre_DAV_Exception_LockTokenMatchesRequestUri extends Sabre_DAV_Exception_Conflict {
17 * Creates the exception
19 public function __construct() {
21 $this->message = 'The locktoken supplied does not match any locks on this entity';
26 * This method allows the exception to include additional information into the WebDAV error response
28 * @param Sabre_DAV_Server $server
29 * @param DOMElement $errorNode
32 public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
34 $error = $errorNode->ownerDocument->createElementNS('DAV:','d:lock-token-matches-request-uri');
35 $errorNode->appendChild($error);