Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752962
ParsingFailure.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
982 B
Referenced Files
None
Subscribers
None
ParsingFailure.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\PageTranslation
;
use
RuntimeException
;
/**
* 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
*/
class
ParsingFailure
extends
RuntimeException
{
/**
* @var array
* @phan-var non-empty-array
*/
private
$messageSpec
;
/**
* @param string $message
* @param array $messageSpec
* @phan-param non-empty-array $messageSpec
*/
public
function
__construct
(
string
$message
,
array
$messageSpec
)
{
parent
::
__construct
(
$message
);
$this
->
messageSpec
=
$messageSpec
;
}
/**
* @return array
* @phan-return non-empty-array
*/
public
function
getMessageSpecification
():
array
{
return
$this
->
messageSpec
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 20:37 (1 d, 11 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/32/a64e2b88ae0307198239d7ecce32
Default Alt Text
ParsingFailure.php (982 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment