MediaWiki master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\Diff;
11
14
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
39class_alias( IncompatibleDiffTypesException::class, 'IncompatibleDiffTypesException' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Base class for content handling.
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...