Child classes:
- Sabre_DAV_Exception_BadRequest
- BadRequest
- Sabre_DAV_Exception_Conflict
- Conflict
- Sabre_DAV_Exception_FileNotFound
- FileNotFound
- Sabre_DAV_Exception_Forbidden
- Forbidden
- Sabre_DAV_Exception_InsufficientStorage
- InsufficientStorage
- Sabre_DAV_Exception_Locked
- Locked
- Sabre_DAV_Exception_MethodNotAllowed
- MethodNotAllowed
- Sabre_DAV_Exception_NotAuthenticated
- NotAuthenticated
- Sabre_DAV_Exception_NotImplemented
- NotImplemented
- Sabre_DAV_Exception_PreconditionFailed
- PreconditionFailed
- Sabre_DAV_Exception_RequestedRangeNotSatisfiable
- RequestedRangeNotSatisfiable
- Sabre_DAV_Exception_UnsupportedMediaType
- UnSupportedMediaType
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
int getHTTPCode(
)
[line 31]
Returns the HTTP statuscode for this exception
Tags:
- access - public
Overridden in child classes as:
- Sabre_DAV_Exception_FileNotFound::getHTTPCode()
- getHTTPCode
- Sabre_DAV_Exception_Forbidden::getHTTPCode()
- getHTTPCode
- Sabre_DAV_Exception_MethodNotAllowed::getHTTPCode()
- Returns the HTTP statuscode for this exception
Parameters:
[ 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:
- Sabre_DAV_Server $server -
[ 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:
Parameters:
- DOMElement $errorNode -
- Sabre_DAV_Server $server -
[ Top ]