4 * SabreDAV base exception
6 * This is SabreDAV's base exception file, use this to implement your own exception.
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
16 * Main Exception class.
18 * This class defines a getHTTPCode method, which should return the appropriate HTTP code for the Exception occurred.
19 * The default for this is 500.
21 * This class also allows you to generate custom xml data for your exceptions. This will be displayed
22 * in the 'error' element in the failing response.
24 class Sabre_DAV_Exception extends Exception {
27 * Returns the HTTP statuscode for this exception
31 public function getHTTPCode() {
38 * This method allows the exception to include additional information into the WebDAV error response
40 * @param Sabre_DAV_Server $server
41 * @param DOMElement $errorNode
44 public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
50 * This method allows the exception to return any extra HTTP response headers.
52 * The headers must be returned as an array.
54 * @param Sabre_DAV_Server $server
57 public function getHTTPHeaders(Sabre_DAV_Server $server) {