MediaWiki master
MediaWiki\Title\MalformedTitleException Class Reference

MalformedTitleException is thrown when a TitleParser is unable to parse a title string. More...

Inherits Exception, and ILocalizedException.

Collaboration diagram for MediaWiki\Title\MalformedTitleException:

Public Member Functions

 __construct ( $errorMessage, $titleText=null, $errorMessageParameters=[])
 
 getErrorMessage ()
 
 getErrorMessageParameters ()
 
 getMessageObject ()
 
 getTitleText ()
 

Detailed Description

MalformedTitleException is thrown when a TitleParser is unable to parse a title string.

Stability: newable
Since
1.23

Definition at line 32 of file MalformedTitleException.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Title\MalformedTitleException::__construct ( $errorMessage,
$titleText = null,
$errorMessageParameters = [] )
Stability: stable
to call
Parameters
string$errorMessageLocalisation message describing the error (since MW 1.26)
string | null$titleTextThe invalid title text (since MW 1.26)
array$errorMessageParametersAdditional parameters for the error message. $titleText will be appended if it's not null. (since MW 1.26)

Definition at line 48 of file MalformedTitleException.php.

References wfEscapeWikiText(), and wfMessage().

Member Function Documentation

◆ getErrorMessage()

MediaWiki\Title\MalformedTitleException::getErrorMessage ( )

◆ getErrorMessageParameters()

MediaWiki\Title\MalformedTitleException::getErrorMessageParameters ( )

◆ getMessageObject()

◆ getTitleText()

MediaWiki\Title\MalformedTitleException::getTitleText ( )
Since
1.26
Returns
string|null

Definition at line 68 of file MalformedTitleException.php.


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