Documentation

NoAbstract extends PreconditionFailed
in package

This exception is thrown when a user tries to set a privilege that's marked as abstract.

Tags
copyright

Copyright (C) fruux GmbH (https://fruux.com/)

author

Evert Pot (http://evertpot.com/)

license

http://sabre.io/license/ Modified BSD License

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:}no-abstract element as defined in rfc3744

Parameters
$server : Server
$errorNode : DOMElement
Return values
mixed

Search results