replace Exception on GeneralException, InitializationException

This commit is contained in:
Vyacheslav Agafonov
2011-11-25 14:55:45 +04:00
parent acc0c96487
commit 9e22d8028a
3 changed files with 3 additions and 3 deletions

View File

@ -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();