mediawiki-extensions-AbuseF.../includes/Filter/FilterNotFoundException.php

19 lines
390 B
PHP
Raw Normal View History

<?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 );
}
}