37 private $errorMessage;
39 private $errorMessageParameters;
49 $errorMessage, $titleText =
null, $errorMessageParameters = []
51 $this->errorMessage = $errorMessage;
52 $this->titleText = $titleText;
53 if ( $titleText !==
null ) {
56 $this->errorMessageParameters = $errorMessageParameters;
59 $enMsg =
wfMessage( $errorMessage, $errorMessageParameters );
60 $enMsg->inLanguage(
'en' )->useDatabase(
false );
61 parent::__construct( $enMsg->text() );
69 return $this->titleText;
77 return $this->errorMessage;
85 return $this->errorMessageParameters;
101 class_alias( MalformedTitleException::class,
'MalformedTitleException' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
wfEscapeWikiText( $text)
Escapes the given text so that it may be output using addWikiText() without any linking,...
The Message class deals with fetching and processing of interface message into a variety of formats.
Interface for MediaWiki-localized exceptions.