6 * This exception is thrown when the user tried to create a new collection, with
7 * a special resourcetype value that was not recognized by the server.
9 * See RFC5689 section 3.3
13 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
14 * @author Evert Pot (http://www.rooftopsolutions.nl/)
15 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
17 class Sabre_DAV_Exception_InvalidResourceType extends Sabre_DAV_Exception_Forbidden {
20 * This method allows the exception to include additional information into the WebDAV error response
22 * @param Sabre_DAV_Server $server
23 * @param DOMElement $errorNode
26 public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
28 $error = $errorNode->ownerDocument->createElementNS('DAV:','d:valid-resourcetype');
29 $errorNode->appendChild($error);