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) | |
![]() | |
__construct ( $messageSpec, $code=0, ?Throwable $previous=null) | |
getMessageObject () | |
Return a Message object for this exception. | |
Additional Inherited Members | |
![]() | |
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 36 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 42 of file IncompatibleDiffTypesException.php.
References wfMessage().