MediaWiki master
MediaWiki\Registration\MissingExtensionException Class Reference

Thrown when ExtensionRegistry cannot open the extension.json or skin.json file. More...

Inherits Exception.

Collaboration diagram for MediaWiki\Registration\MissingExtensionException:

Public Member Functions

 __construct (string $path, string $error)
 
 render ()
 Output an error response and exit.
 

Detailed Description

Thrown when ExtensionRegistry cannot open the extension.json or skin.json file.

We handle this case specially, because it is one of the more common errors a new MW sysadmin is likely to encounter and we want their initial experience to be good. wfLoadExtension() generally happens before MWExceptionRenderer gets installed so we cannot use that.

Access: internal

Definition at line 22 of file MissingExtensionException.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Registration\MissingExtensionException::__construct ( string $path,
string $error )
Parameters
string$pathPath of file that cannot be read
string$errorText of error mtime gave

Definition at line 32 of file MissingExtensionException.php.

References $path.

Member Function Documentation

◆ render()

MediaWiki\Registration\MissingExtensionException::render ( )

Output an error response and exit.

Returns
never

Definition at line 94 of file MissingExtensionException.php.


The documentation for this class was generated from the following file: