MediaWiki master
MediaWiki\Rest\LocalizedHttpException Class Reference

Inherits MediaWiki\Rest\HttpException.

Collaboration diagram for MediaWiki\Rest\LocalizedHttpException:

Public Member Functions

 __construct (private readonly MessageSpecifier $messageSpecifier, int $code=500, array $errorData=[],)
 getErrorKey ()
 getMessageSpecifier ()
 getMessageValue ()
Public Member Functions inherited from MediaWiki\Rest\HttpException
 __construct (string $message, int $code=500, private readonly array $errorData=[],)
 getErrorData ()

Detailed Description

Stability: newable

Definition at line 12 of file LocalizedHttpException.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\LocalizedHttpException::__construct ( private readonly MessageSpecifier $messageSpecifier,
int $code = 500,
array $errorData = [] )
Stability: stable
to call
Parameters
MessageSpecifier$messageSpecifierPrior to MediaWiki 1.47 this had to be a MessageValue
int$code
array$errorData

Definition at line 21 of file LocalizedHttpException.php.

Member Function Documentation

◆ getErrorKey()

MediaWiki\Rest\LocalizedHttpException::getErrorKey ( )

Definition at line 50 of file LocalizedHttpException.php.

References return.

◆ getMessageSpecifier()

MediaWiki\Rest\LocalizedHttpException::getMessageSpecifier ( )
Since
1.47
Returns
MessageSpecifier

Definition at line 46 of file LocalizedHttpException.php.

References return.

◆ getMessageValue()

MediaWiki\Rest\LocalizedHttpException::getMessageValue ( )

Definition at line 38 of file LocalizedHttpException.php.

References return.


The documentation for this class was generated from the following file: