MediaWiki master
MediaWiki\Rest\LocalizedHttpException Class Reference

Inherits MediaWiki\Rest\HttpException.

Collaboration diagram for MediaWiki\Rest\LocalizedHttpException:

Public Member Functions

 __construct (MessageSpecifier $messageValue, $code=500, $errorData=[])
 
 getErrorKey ()
 
 getMessageSpecifier ()
 
 getMessageValue ()
 
- Public Member Functions inherited from MediaWiki\Rest\HttpException
 __construct ( $message, $code=500, $errorData=[])
 
 getErrorData ()
 

Detailed Description

Stability: newable

Definition at line 12 of file LocalizedHttpException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 23 of file LocalizedHttpException.php.

References Wikimedia\Message\MessageSpecifier\getKey().

Member Function Documentation

◆ getErrorKey()

MediaWiki\Rest\LocalizedHttpException::getErrorKey ( )

Definition at line 49 of file LocalizedHttpException.php.

◆ getMessageSpecifier()

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

Definition at line 45 of file LocalizedHttpException.php.

◆ getMessageValue()

MediaWiki\Rest\LocalizedHttpException::getMessageValue ( )

Definition at line 37 of file LocalizedHttpException.php.


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