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