Replacment Exception() on InitializationException(), GeneralException() in /view

This commit is contained in:
Vyacheslav Agafonov
2011-11-24 17:57:40 +04:00
parent 82fb239fca
commit 25ba2abf54
4 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ class PHPView implements iView
ob_start();
if (!is_readable($this->template)) {
ob_clean();
throw new InitializationException('Template "' . $this->template .'" not found.');
throw new GeneralException('Template "' . $this->template .'" not found.');
}
include($this->template);
return ob_get_clean();

View File

@ -21,7 +21,7 @@ class MsgViewHelper extends ViewHelper
{
if ($msg && $type) {
if (!in_array($type, array(self::SUCCESS, self::ERROR))) {
throw new InitializationException('Unknown message type: "' . $type . '"');
throw new GeneralException('Unknown message type: "' . $type . '"');
}
Session::set(__CLASS__, array('message' => $msg, 'type' => $type));
}