replacement Exception() on InitializationException()
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user