CExceptionEvent
鍖 | system.base |
---|---|
缁ф壙 | class CExceptionEvent » CEvent » CComponent |
婧愯嚜 | 1.0 |
鐗堟湰 | $Id: CExceptionEvent.php 2799 2011-01-01 19:31:13Z qiang.xue $ |
婧愮爜 | framework/base/CExceptionEvent.php |
CExceptionEvent琛ㄧず涓onException浜嬩欢鎻愪緵鐨勫弬鏁.
鍏叡灞炴
灞炴 | 绫诲瀷 | 鎻忚堪 | 瀹氫箟鍦 |
---|---|---|---|
exception | CException | 杩欎釜寮傚父鏄叧浜庝簨浠剁殑銆 | CExceptionEvent |
handled | boolean | 鏄惁澶勭悊浜嬩欢銆傞粯璁や负false銆 褰撹繖涓艰缃负true锛屽叾瀹冩湭澶勭悊鐨勪簨浠跺鐞嗙▼搴忋 | CEvent |
params | mixed | 闄勫姞鐨勪簨浠跺弬鏁. | CEvent |
sender | object | 浜嬩欢鐨勫彂璧疯 | CEvent |
鍏叡鏂规硶
灞炴ц缁
exception
灞炴
public CException $exception;
杩欎釜寮傚父鏄叧浜庝簨浠剁殑銆
鏂规硶璇︾粏
__construct()
鏂规硶
public void __construct(mixed $sender, CException $exception)
| ||
$sender | mixed | 浜嬩欢鐨勫彂璧疯 |
$exception | CException | 寮傚父 |
婧愮爜锛 framework/base/CExceptionEvent.php#31 (鏄剧ず)
public function __construct($sender,$exception)
{
$this->exception=$exception;
parent::__construct($sender);
}
鏋勯犲櫒銆