Page MenuHomeWickedGov Phorge

ExtensionError.php
No OneTemporary

Size
755 B
Referenced Files
None
Subscribers
None

ExtensionError.php

<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\Ext;
use Exception;
use Wikimedia\Parsoid\NodeData\DataMwError;
/**
* Exception thrown to halt extension tag content parsing and produce standard
* error output.
*
* $key and $params are basically the arguments to wfMessage, although they
* will be stored in the data-mw of the encapsulation wrapper.
*
* See https://www.mediawiki.org/wiki/Specs/HTML#Error_handling
*/
class ExtensionError extends Exception {
/**
* @var DataMwError
*/
public $err;
/**
* @param string $key
* @param mixed ...$params
*/
public function __construct(
string $key = 'mw-extparse-error', ...$params
) {
parent::__construct();
$this->err = new DataMwError( $key, $params );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 17 2026, 18:33 (10 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1c/4c/30ebe3969e5294c715d49863cd06
Default Alt Text
ExtensionError.php (755 B)

Event Timeline