MediaWiki
master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1
<?php
33
class
IncompatibleDiffTypesException
extends
LocalizedException
{
34
39
public
function
__construct
( $oldModel, $newModel ) {
40
$oldName = ContentHandler::getLocalizedName( $oldModel );
41
$newName = ContentHandler::getLocalizedName( $newModel );
42
parent::__construct(
wfMessage
(
'diff-incompatible'
, $oldName, $newName ) );
43
}
44
45
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:902
IncompatibleDiffTypesException
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...
Definition
IncompatibleDiffTypesException.php:33
IncompatibleDiffTypesException\__construct
__construct( $oldModel, $newModel)
Definition
IncompatibleDiffTypesException.php:39
LocalizedException
Basic localized exception.
Definition
LocalizedException.php:32
includes
diff
IncompatibleDiffTypesException.php
Generated on Thu May 9 2024 12:23:36 for MediaWiki by
1.10.0