MediaWiki
master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1
<?php
10
namespace
MediaWiki\Diff
;
11
12
use
MediaWiki\Content\ContentHandler
;
13
use
MediaWiki\Exception\LocalizedException
;
14
24
class
IncompatibleDiffTypesException
extends
LocalizedException
{
25
30
public
function
__construct
( $oldModel, $newModel ) {
31
$oldName = ContentHandler::getLocalizedName( $oldModel );
32
$newName = ContentHandler::getLocalizedName( $newModel );
33
parent::__construct(
wfMessage
(
'diff-incompatible'
, $oldName, $newName ) );
34
}
35
36
}
37
39
class_alias( IncompatibleDiffTypesException::class,
'IncompatibleDiffTypesException'
);
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:821
MediaWiki\Content\ContentHandler
Base class for content handling.
Definition
ContentHandler.php:76
MediaWiki\Diff\IncompatibleDiffTypesException
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...
Definition
IncompatibleDiffTypesException.php:24
MediaWiki\Diff\IncompatibleDiffTypesException\__construct
__construct( $oldModel, $newModel)
Definition
IncompatibleDiffTypesException.php:30
MediaWiki\Exception\LocalizedException
Basic localized exception.
Definition
LocalizedException.php:24
MediaWiki\Diff
Definition
DifferenceEngine.php:11
includes
Diff
IncompatibleDiffTypesException.php
Generated on Fri Jan 16 2026 02:24:46 for MediaWiki by
1.10.0