Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\PageTranslation\ParsingFailure Class Reference

Represents any kind of failure to parse a translatable page source code. More...

Inheritance diagram for MediaWiki\Extension\Translate\PageTranslation\ParsingFailure:

Public Member Functions

 __construct (string $message, array $messageSpec)
 
 getMessageSpecification ()
 

Detailed Description

Represents any kind of failure to parse a translatable page source code.

This is an internal exception that includes information to produce translated error messages, but actually displaying them to users is handled by MediaWiki core.

Author
Niklas Laxström @license GPL-2.0-or-later
Since
2020.08

Definition at line 18 of file ParsingFailure.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\PageTranslation\ParsingFailure::__construct ( string $message,
array $messageSpec )
Parameters
string$message
array$messageSpec@phan-param non-empty-array $messageSpec

Definition at line 30 of file ParsingFailure.php.

Member Function Documentation

◆ getMessageSpecification()

MediaWiki\Extension\Translate\PageTranslation\ParsingFailure::getMessageSpecification ( )
Returns
array @phan-return non-empty-array

Definition at line 39 of file ParsingFailure.php.


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