MediaWiki master
MissingExtensionException Class Reference

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

Inherits Exception.

Collaboration diagram for MissingExtensionException:

Public Member Functions

 __construct ( $path, $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 16 of file MissingExtensionException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 30 of file MissingExtensionException.php.

References $path.

Member Function Documentation

◆ render()

MissingExtensionException::render ( )

Output an error response and exit.

Returns
never

Definition at line 92 of file MissingExtensionException.php.


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