mediawiki-extensions-AbuseF.../includes/Parser/AFPConditionLimitException.php
Daimona Eaytoy e64049c30b Create dedicated types of parser exceptions
Introduce a clear distinction between internal exceptions and
user-visible exceptions, leaving AFPException as base abstract class.

Later, it should be possible to narrow some types around, e.g. in
ParserStatus (that might work with user-visible exceptions only).

Also a future TODO is putting all the exceptions in their own namespace
(probably ...\Parser\Exception).

Change-Id: I4e33a45117f0a3e73af03cc1e3f2734beaf2b5e1
2021-02-12 13:56:02 +00:00

13 lines
295 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter\Parser;
/**
* Exceptions thrown upon reaching the condition limit of the AbuseFilter parser.
*/
class AFPConditionLimitException extends AFPException {
public function __construct() {
parent::__construct( 'Condition limit reached.' );
}
}