MediaWiki
1.43.1
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1
<?php
24
use
MediaWiki\Content\ContentHandler
;
25
35
class
IncompatibleDiffTypesException
extends
LocalizedException
{
36
41
public
function
__construct
( $oldModel, $newModel ) {
42
$oldName = ContentHandler::getLocalizedName( $oldModel );
43
$newName = ContentHandler::getLocalizedName( $newModel );
44
parent::__construct(
wfMessage
(
'diff-incompatible'
, $oldName, $newName ) );
45
}
46
47
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:849
IncompatibleDiffTypesException
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...
Definition
IncompatibleDiffTypesException.php:35
IncompatibleDiffTypesException\__construct
__construct( $oldModel, $newModel)
Definition
IncompatibleDiffTypesException.php:41
LocalizedException
Basic localized exception.
Definition
LocalizedException.php:34
MediaWiki\Content\ContentHandler
A content handler knows how do deal with a specific type of content on a wiki page.
Definition
ContentHandler.php:94
includes
diff
IncompatibleDiffTypesException.php
Generated on Thu Apr 10 2025 18:12:28 for MediaWiki by
1.10.0