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