]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAV/Exception/LockTokenMatchesRequestUri.php
Merge remote branch 'friendica/master'
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAV / Exception / LockTokenMatchesRequestUri.php
1 <?php
2
3 /**
4  * LockTokenMatchesRequestUri
5  *
6  * This exception is thrown by UNLOCK if a supplied lock-token is invalid
7  *
8  * @package Sabre
9  * @subpackage DAV
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
13  */
14 class Sabre_DAV_Exception_LockTokenMatchesRequestUri extends Sabre_DAV_Exception_Conflict {
15
16     /**
17      * Creates the exception
18      */
19     public function __construct() {
20
21         $this->message = 'The locktoken supplied does not match any locks on this entity';
22
23     }
24
25     /**
26      * This method allows the exception to include additional information into the WebDAV error response
27      *
28      * @param Sabre_DAV_Server $server
29      * @param DOMElement $errorNode
30      * @return void
31      */
32     public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
33
34         $error = $errorNode->ownerDocument->createElementNS('DAV:','d:lock-token-matches-request-uri');
35         $errorNode->appendChild($error);
36
37     }
38
39 }