replace Exception on GeneralException

This commit is contained in:
Vyacheslav Agafonov
2011-11-25 13:54:31 +04:00
parent 669b68ba4a
commit 7d215c9af4
6 changed files with 15 additions and 15 deletions

View File

@ -39,7 +39,7 @@ abstract class Form
public function isValid($data)
{
if (!is_array($data)) {
throw new Exception(__CLASS__ . '::' . __METHOD__ . ' expects an array');
throw new InitializationException(__CLASS__ . '::' . __METHOD__ . ' expects an array');
}
foreach ($this->fields as $field_name => $field) {