MediaWiki
master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1
<?php
24
use
MediaWiki\Content\ContentHandler
;
25
use
MediaWiki\Exception\LocalizedException
;
26
36
class
IncompatibleDiffTypesException
extends
LocalizedException
{
37
42
public
function
__construct
( $oldModel, $newModel ) {
43
$oldName = ContentHandler::getLocalizedName( $oldModel );
44
$newName = ContentHandler::getLocalizedName( $newModel );
45
parent::__construct(
wfMessage
(
'diff-incompatible'
, $oldName, $newName ) );
46
}
47
48
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:859
IncompatibleDiffTypesException
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...
Definition
IncompatibleDiffTypesException.php:36
IncompatibleDiffTypesException\__construct
__construct( $oldModel, $newModel)
Definition
IncompatibleDiffTypesException.php:42
MediaWiki\Content\ContentHandler
Base class for content handling.
Definition
ContentHandler.php:89
MediaWiki\Exception\LocalizedException
Basic localized exception.
Definition
LocalizedException.php:38
includes
diff
IncompatibleDiffTypesException.php
Generated on Wed Jul 16 2025 02:24:07 for MediaWiki by
1.10.0