MediaWiki master
|
MalformedTitleException is thrown when a TitleParser is unable to parse a title string. More...
Inherits Exception, and ILocalizedException.
Public Member Functions | |
__construct ( $errorMessage, $titleText=null, $errorMessageParameters=[]) | |
getErrorMessage () | |
getErrorMessageParameters () | |
getMessageObject () | |
getTitleText () | |
MalformedTitleException is thrown when a TitleParser is unable to parse a title string.
Definition at line 32 of file MalformedTitleException.php.
MediaWiki\Title\MalformedTitleException::__construct | ( | $errorMessage, | |
$titleText = null, | |||
$errorMessageParameters = [] ) |
string | $errorMessage | Localisation message describing the error (since MW 1.26) |
string | null | $titleText | The invalid title text (since MW 1.26) |
array | $errorMessageParameters | Additional 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().
MediaWiki\Title\MalformedTitleException::getErrorMessage | ( | ) |
Definition at line 76 of file MalformedTitleException.php.
Referenced by MediaWiki\Title\MalformedTitleException\getMessageObject(), and MediaWiki\HTMLForm\Field\HTMLTitleTextField\validate().
MediaWiki\Title\MalformedTitleException::getErrorMessageParameters | ( | ) |
Definition at line 84 of file MalformedTitleException.php.
Referenced by MediaWiki\Title\MalformedTitleException\getMessageObject(), and MediaWiki\HTMLForm\Field\HTMLTitleTextField\validate().
MediaWiki\Title\MalformedTitleException::getMessageObject | ( | ) |
Implements ILocalizedException.
Definition at line 92 of file MalformedTitleException.php.
References MediaWiki\Title\MalformedTitleException\getErrorMessage(), MediaWiki\Title\MalformedTitleException\getErrorMessageParameters(), and wfMessage().
Referenced by MediaWiki\Specials\SpecialRedirect\dispatchFile(), MediaWiki\SpecialPage\SpecialRedirectWithAction\onFormSubmit(), MediaWiki\Specials\SpecialPageLanguage\onSubmit(), and MediaWiki\Specials\Redirects\SpecialTalkPage\onSubmit().
MediaWiki\Title\MalformedTitleException::getTitleText | ( | ) |