Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5990161
TimeoutException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
540 B
Referenced Files
None
Subscribers
None
TimeoutException.php
View Options
<?php
namespace
Wikimedia\RequestTimeout
;
use
Wikimedia\NormalizedException\NormalizedException
;
/**
* The base class for timeout exceptions thrown by this library
*/
class
TimeoutException
extends
NormalizedException
{
/** @var float */
private
$limit
;
public
function
__construct
(
$message
,
$limit
)
{
parent
::
__construct
(
$message
,
[
'limit'
=>
$limit
]
);
$this
->
limit
=
$limit
;
}
/**
* Get the limit which was exceeded, in seconds.
*
* @return float
*/
public
function
getLimit
()
{
return
$this
->
limit
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 01:24 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
81/eb/aea1e3c1ffe972da7a216ebcc956
Default Alt Text
TimeoutException.php (540 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment