Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
FilterNotFoundException
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 __construct
n/a
0 / 0
n/a
0 / 0
2
1<?php
2
3namespace MediaWiki\Extension\AbuseFilter\Filter;
4
5use RuntimeException;
6
7/**
8 * @codeCoverageIgnore
9 */
10class FilterNotFoundException extends RuntimeException {
11    /**
12     * @param int $filter
13     * @param bool $global
14     */
15    public function __construct( int $filter, bool $global ) {
16        $msg = $global
17            ? "Global filter $filter does not exist"
18            : "Filter $filter does not exist";
19        parent::__construct( $msg );
20    }
21}