replace Exception on GeneralException, InitializationException
This commit is contained in:
@ -30,7 +30,7 @@ class RegexValidator extends Validator
|
||||
|
||||
$status = preg_match($this->regex, $value);
|
||||
if ($status === false) {
|
||||
throw new Exception('Internal error matching regex "' . $this->regex . ' against value "' . $value . '"');
|
||||
throw new GeneralException('Internal error matching regex "' . $this->regex . ' against value "' . $value . '"');
|
||||
}
|
||||
if (!$status) {
|
||||
$this->error();
|
||||
|
Reference in New Issue
Block a user