PreconditionFailed
PreconditionFailed.
This exception is normally thrown when a client submitted a conditional request, like for example an If, If-None-Match or If-Match header, which caused the HTTP request to not execute (the condition of the header failed)
- Full name:
\Sabre\DAV\Exception\PreconditionFailed
- Parent class:
\Sabre\DAV\Exception
Properties
header
When this exception is thrown, the header-name might be set.
This allows the exception-catching code to determine which HTTP header caused the exception.
Methods
__construct
Create the exception.
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$header |
string |
getHTTPCode
Returns the HTTP statuscode for this exception.
serialize
This method allows the exception to include additional information into the WebDAV error response.
Parameters:
Parameter | Type | Description |
---|---|---|
$server |
\Sabre\DAV\Server | |
$errorNode |
\DOMElement |
Inherited methods
getHTTPCode
Returns the HTTP statuscode for this exception.
serialize
This method allows the exception to include additional information into the WebDAV error response.
Parameters:
Parameter | Type | Description |
---|---|---|
$server |
\Sabre\DAV\Server | |
$errorNode |
\DOMElement |
getHTTPHeaders
This method allows the exception to return any extra HTTP response headers.
The headers must be returned as an array.
Parameters:
Parameter | Type | Description |
---|---|---|
$server |
\Sabre\DAV\Server |
Automatically generated on 2025-03-18