Class: Sabre_DAV_Exception

Source Location: /includes/classes/SabreDAV/lib/Sabre/DAV/Exception.php

Class Overview [line 24]

Exception
   |
   --Sabre_DAV_Exception

Main Exception class.

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$string
$trace

Inherited Constants

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )


Class Details

Main Exception class.

This class defines a getHTTPCode method, which should return the appropriate HTTP code for the Exception occured. The default for this is 500.

This class also allows you to generate custom xml data for your exceptions. This will be displayed in the 'error' element in the failing response.

[ Top ]


Class Variables


Class Methods

getHTTPCode

[ Top ]

getHTTPHeaders

array getHTTPHeaders( Sabre_DAV_Server $server)

[line 55]

This method allows the exception to return any extra HTTP response headers.

The headers must be returned as an array.

Tags:

  • access - public

Overridden in child classes as:

Sabre_DAV_Exception_MethodNotAllowed::getHTTPHeaders()
This method allows the exception to return any extra HTTP response headers.

Parameters:

[ Top ]

serialize

void serialize( Sabre_DAV_Server $server, $errorNode)

[line 43]

This method allows the exception to include additonal information into the WebDAV error response

Tags:

  • access - public

Overridden in child classes as:

Sabre_DAV_Exception_LockTokenMatchesRequestUri::serialize()
Sabre_DAV_Exception_InvalidResourceType::serialize()
Sabre_DAV_Exception_Locked::serialize()
Sabre_DAV_Exception_ConflictingLock::serialize()
Sabre_DAV_Exception_ReportNotImplemented::serialize()

Parameters:

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:16 -0400 by phpDocumentor 1.4.3