49 $msg = $this->
getMessageObject()->inLanguage(
'en' )->useDatabase(
false )->text();
50 $msg = preg_replace(
'!</?(var|kbd|samp|code)>!',
'"', $msg );
51 $msg = Sanitizer::stripAllTags( $msg );
52 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.