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

@ -27,7 +27,7 @@ class EqualValidator extends Validator
{
$this->setValue($value);
if ($this->token === null) {
throw new Exception('Token not defined.');
throw new InitializationException('Token not defined.');
}
if ($value !== $this->token) {