MediaWiki
master
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:852
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
Base class for content handling.
Definition
ContentHandler.php:89
includes
diff
IncompatibleDiffTypesException.php
Generated on Wed Mar 19 2025 16:24:59 for MediaWiki by
1.10.0