Added new (clean) yii boilerplate
This commit is contained in:
35
framework/base/CExceptionEvent.php
Normal file
35
framework/base/CExceptionEvent.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* CExceptionEvent class file.
|
||||
*
|
||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||
* @link http://www.yiiframework.com/
|
||||
* @copyright 2008-2013 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>
|
||||
* @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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user