replacement Exception() on InitializationException()

This commit is contained in:
Vyacheslav Agafonov
2011-11-24 17:02:36 +04:00
parent eebb013ecf
commit 82fb239fca
2 changed files with 6 additions and 2 deletions

View File

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