Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4075444
ExtensionError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
ExtensionError.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment