47 $msg = $this->
getMessageObject()->inLanguage(
'en' )->useDatabase(
false )->text();
48 $msg = preg_replace(
'!</?(var|kbd|samp|code)>!',
'"', $msg );
49 $msg = Sanitizer::stripAllTags( $msg );
50 parent::__construct( $msg, $code, $previous );
Basic localized exception.
__construct( $messageSpec, $code=0, Throwable $previous=null)
string array MessageSpecifier $messageSpec
getMessageObject()
Return a Message object for this exception.
static newFromSpecifier( $value)
Transform a MessageSpecifier or a primitive value used interchangeably with specifiers (a message key...
Interface for MediaWiki-localized exceptions.