MediaWiki master
IncompatibleDiffTypesException Class Reference

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 LocalizedException.

Collaboration diagram for IncompatibleDiffTypesException:

Public Member Functions

 __construct ( $oldModel, $newModel)
 
- Public Member Functions inherited from LocalizedException
 __construct ( $messageSpec, $code=0, Throwable $previous=null)
 
 getMessageObject ()
 Return a Message object for this exception.
 

Additional Inherited Members

- Protected Attributes inherited from LocalizedException
string array MessageSpecifier $messageSpec
 

Detailed Description

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.

Since
1.41

Definition at line 33 of file IncompatibleDiffTypesException.php.

Constructor & Destructor Documentation

◆ __construct()

IncompatibleDiffTypesException::__construct ( $oldModel,
$newModel )
Parameters
string$oldModelContent model of the "old" side of the diff
string$newModelContent model of the "new" side of the diff

Definition at line 39 of file IncompatibleDiffTypesException.php.

References wfMessage().


The documentation for this class was generated from the following file: