NotSupportedPrivilege
extends PreconditionFailed
in package
If a client tried to set a privilege that doesn't exist, this exception will be thrown.
Tags
Table of Contents
- $header : string
- When this exception is thrown, the header-name might be set.
- __construct() : mixed
- Create the exception.
- getHTTPCode() : int
- Returns the HTTP statuscode for this exception.
- getHTTPHeaders() : array<string|int, mixed>
- This method allows the exception to return any extra HTTP response headers.
- serialize() : mixed
- Adds in extra information in the xml response.
Properties
$header
When this exception is thrown, the header-name might be set.
public
string
$header
= null
This allows the exception-catching code to determine which HTTP header caused the exception.
Methods
__construct()
Create the exception.
public
__construct(string $message[, string $header = null ]) : mixed
Parameters
- $message : string
- $header : string = null
Return values
mixed —getHTTPCode()
Returns the HTTP statuscode for this exception.
public
getHTTPCode() : int
Return values
int —getHTTPHeaders()
This method allows the exception to return any extra HTTP response headers.
public
getHTTPHeaders(Server $server) : array<string|int, mixed>
The headers must be returned as an array.
Parameters
- $server : Server
Return values
array<string|int, mixed> —serialize()
Adds in extra information in the xml response.
public
serialize(Server $server, DOMElement $errorNode) : mixed
This method adds the {DAV:}not-supported-privilege element as defined in rfc3744
Parameters
- $server : Server
- $errorNode : DOMElement