summaryrefslogtreecommitdiff
path: root/framework/base/CExceptionEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/base/CExceptionEvent.php')
-rw-r--r--framework/base/CExceptionEvent.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/framework/base/CExceptionEvent.php b/framework/base/CExceptionEvent.php
new file mode 100644
index 0000000..dab28e3
--- /dev/null
+++ b/framework/base/CExceptionEvent.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * CExceptionEvent class file.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.yiiframework.com/
+ * @copyright Copyright &copy; 2008-2011 Yii Software LLC
+ * @license http://www.yiiframework.com/license/
+ */
+
+/**
+ * CExceptionEvent represents the parameter for the {@link CApplication::onException onException} event.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id: CExceptionEvent.php 2799 2011-01-01 19:31:13Z qiang.xue $
+ * @package system.base
+ * @since 1.0
+ */
+class CExceptionEvent extends CEvent
+{
+ /**
+ * @var CException the exception that this event is about.
+ */
+ public $exception;
+
+ /**
+ * Constructor.
+ * @param mixed $sender sender of the event
+ * @param CException $exception the exception
+ */
+ public function __construct($sender,$exception)
+ {
+ $this->exception=$exception;
+ parent::__construct($sender);
+ }
+} \ No newline at end of file