Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ParsedQueryClassifierException | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace CirrusSearch\Parser; |
| 4 | |
| 5 | use Wikimedia\NormalizedException\INormalizedException; |
| 6 | use Wikimedia\NormalizedException\NormalizedExceptionTrait; |
| 7 | |
| 8 | /** |
| 9 | * Problem related to ParsedQueryClassifier |
| 10 | * @see FTQueryClassifiersRepository |
| 11 | * @see ParsedQueryClassifier |
| 12 | */ |
| 13 | class ParsedQueryClassifierException extends \RuntimeException implements INormalizedException { |
| 14 | use NormalizedExceptionTrait; |
| 15 | |
| 16 | public function __construct( string $message, array $context = [] ) { |
| 17 | $this->normalizedMessage = $message; |
| 18 | $this->messageContext = $context; |
| 19 | parent::__construct( self::getMessageFromNormalizedMessage( $message, $context ) ); |
| 20 | } |
| 21 | } |