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() );