Page MenuHomeWickedGov Phorge

ThrottledError.php
No OneTemporary

Size
653 B
Referenced Files
None
Subscribers
None

ThrottledError.php

<?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

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)

Event Timeline