1: <?php
2: /**
3: * CExceptionEvent class file.
4: *
5: * @author Qiang Xue <qiang.xue@gmail.com>
6: * @link http://www.yiiframework.com/
7: * @copyright 2008-2013 Yii Software LLC
8: * @license http://www.yiiframework.com/license/
9: */
10:
11: /**
12: * CExceptionEvent represents the parameter for the {@link CApplication::onException onException} event.
13: *
14: * @author Qiang Xue <qiang.xue@gmail.com>
15: * @package system.base
16: * @since 1.0
17: */
18: class CExceptionEvent extends CEvent
19: {
20: /**
21: * @var CException the exception that this event is about.
22: */
23: public $exception;
24:
25: /**
26: * Constructor.
27: * @param mixed $sender sender of the event
28: * @param CException $exception the exception
29: */
30: public function __construct($sender,$exception)
31: {
32: $this->exception=$exception;
33: parent::__construct($sender);
34: }
35: }