|
MediaWiki master
|
Exception thrown when an unregistered content model is requested. More...
Inherits Exception.

Public Member Functions | |
| __construct (private readonly string $modelId,) | |
| getModelId () | |
Exception thrown when an unregistered content model is requested.
This error can be triggered by user input, so a separate exception class is provided so callers can substitute a context-specific, internationalised error message.
Definition at line 16 of file UnknownContentModelException.php.
| MediaWiki\Content\UnknownContentModelException::__construct | ( | private readonly string | $modelId | ) |
| string | $modelId | The name of the unknown content model |
Definition at line 21 of file UnknownContentModelException.php.
| MediaWiki\Content\UnknownContentModelException::getModelId | ( | ) |
Definition at line 30 of file UnknownContentModelException.php.