|
MediaWiki master
|
Exception thrown when trying to render a diff between two content types which cannot be compared (this is typically the case for all content types unless both of them are some variant of TextContent). More...
Inherits MediaWiki\Exception\LocalizedException.

Public Member Functions | |
| __construct ( $oldModel, $newModel) | |
Public Member Functions inherited from MediaWiki\Exception\LocalizedException | |
| __construct ( $messageSpec, $code=0, ?Throwable $previous=null) | |
| getMessageObject () | |
Return a Message object for this exception.
| |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Exception\LocalizedException | |
| string array MessageSpecifier | $messageSpec |
Exception thrown when trying to render a diff between two content types which cannot be compared (this is typically the case for all content types unless both of them are some variant of TextContent).
SlotDiffRenderer and DifferenceEngine classes should generally throw this exception when handed a content object they don't know how to diff against.
Definition at line 22 of file IncompatibleDiffTypesException.php.
| IncompatibleDiffTypesException::__construct | ( | $oldModel, | |
| $newModel ) |
| string | $oldModel | Content model of the "old" side of the diff |
| string | $newModel | Content model of the "new" side of the diff |
Definition at line 28 of file IncompatibleDiffTypesException.php.
References wfMessage().