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

@ -51,7 +51,7 @@ abstract class Validator implements iValidator
protected function createMessage($template, $value)
{
if (!isset($this->templates[$template])) {
throw new Exception('Message template "' . $template . '" unknown.');
throw new GeneralException('Message template "' . $template . '" unknown.');
}
$message = $this->templates[$template];