Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
WeightedTagsException
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace CirrusSearch;
4
5use RuntimeException;
6use Throwable;
7use Wikimedia\NormalizedException\INormalizedException;
8use Wikimedia\NormalizedException\NormalizedExceptionTrait;
9
10class WeightedTagsException extends RuntimeException implements INormalizedException {
11    use NormalizedExceptionTrait;
12
13    /**
14     * @param string $message message template
15     * @param array|null $context optional contextual information (used for placeholders in template)
16     * @param Throwable|null $previous optional cause
17     */
18    public function __construct( string $message, ?array $context = [], ?Throwable $previous = null ) {
19        $this->normalizedMessage = $message;
20        $this->messageContext = $context;
21
22        parent::__construct(
23            $this->getMessageFromNormalizedMessage( $this->normalizedMessage, $this->messageContext ), 0, $previous
24        );
25    }
26}