Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
ParsingFailure.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
6use RuntimeException;
7
18class ParsingFailure extends RuntimeException {
19 private $messageSpec;
20
21 public function __construct( string $message, array $messageSpec ) {
22 parent::__construct( $message );
23 $this->messageSpec = $messageSpec;
24 }
25
26 public function getMessageSpecification(): array {
27 return $this->messageSpec;
28 }
29}
Represents any kind of failure to parse a translatable page source code.