mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-16 10:39:43 +00:00
19 lines
390 B
PHP
19 lines
390 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\AbuseFilter\Filter;
|
||
|
|
||
|
use RuntimeException;
|
||
|
|
||
|
class FilterNotFoundException extends RuntimeException {
|
||
|
/**
|
||
|
* @param int $filter
|
||
|
* @param bool $global
|
||
|
*/
|
||
|
public function __construct( int $filter, bool $global ) {
|
||
|
$msg = $global
|
||
|
? "Global filter $filter does not exist"
|
||
|
: "Filter $filter does not exist";
|
||
|
parent::__construct( $msg );
|
||
|
}
|
||
|
}
|