replace Exception on GeneralException, InitializationException
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user