Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4192518
ThrottledError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
ThrottledError.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Exception
;
/**
* Show an error when the user hits a rate limit.
*
* @newable
* @since 1.18
* @ingroup Exception
*/
class
ThrottledError
extends
ErrorPageError
{
/**
* @stable to call
*/
public
function
__construct
()
{
parent
::
__construct
(
'actionthrottled'
,
'actionthrottledtext'
);
}
/** @inheritDoc */
public
function
report
(
$action
=
ErrorPageError
::
SEND_OUTPUT
)
{
global
$wgOut
;
$wgOut
->
setStatusCode
(
429
);
parent
::
report
(
$action
);
}
}
/** @deprecated class alias since 1.44 */
class_alias
(
ThrottledError
::
class
,
'ThrottledError'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 20 2026, 18:40 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
24/85/1462923040c51196cecabe337a3c
Default Alt Text
ThrottledError.php (653 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment