Locked
extends Exception
in package
Locked.
The 423 is thrown when a client tried to access a resource that was locked, without supplying a valid lock token
Tags
Table of Contents
- $lock : LockInfo
- Lock information.
- __construct() : mixed
- Creates 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
- This method allows the exception to include additional information into the WebDAV error response.
Properties
$lock
Lock information.
protected
LockInfo
$lock
Methods
__construct()
Creates the exception.
public
__construct([LockInfo $lock = null ]) : mixed
A LockInfo object should be passed if the user should be informed which lock actually has the file locked.
Parameters
- $lock : LockInfo = 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()
This method allows the exception to include additional information into the WebDAV error response.
public
serialize(Server $server, DOMElement $errorNode) : mixed
Parameters
- $server : Server
- $errorNode : DOMElement