CErrorEvent
鍖 | system.base |
---|---|
缁ф壙 | class CErrorEvent » CEvent » CComponent |
婧愯嚜 | 1.0 |
鐗堟湰 | $Id: CErrorEvent.php 2799 2011-01-01 19:31:13Z qiang.xue $ |
婧愮爜 | framework/base/CErrorEvent.php |
CErrorEvent琛ㄧず鐢onError浜嬩欢浜х敓寮傚父銆
鍏叡灞炴
灞炴 | 绫诲瀷 | 鎻忚堪 | 瀹氫箟鍦 |
---|---|---|---|
code | string | 閿欒鐮 | CErrorEvent |
file | string | 閿欒鏂囦欢 | CErrorEvent |
handled | boolean | 鏄惁澶勭悊浜嬩欢銆傞粯璁や负false銆 褰撹繖涓艰缃负true锛屽叾瀹冩湭澶勭悊鐨勪簨浠跺鐞嗙▼搴忋 | CEvent |
line | string | 閿欒琛屽彿 | CErrorEvent |
message | string | 閿欒淇℃伅 | CErrorEvent |
params | mixed | 闄勫姞鐨勪簨浠跺弬鏁. | CEvent |
sender | object | 浜嬩欢鐨勫彂璧疯 | CEvent |
鍏叡鏂规硶
灞炴ц缁
code
灞炴
public string $code;
閿欒鐮
file
灞炴
public string $file;
閿欒鏂囦欢
line
灞炴
public string $line;
閿欒琛屽彿
message
灞炴
public string $message;
閿欒淇℃伅
鏂规硶璇︾粏
__construct()
鏂规硶
public void __construct(mixed $sender, string $code, string $message, string $file, integer $line)
| ||
$sender | mixed | 浜嬩欢鍙戣捣鑰 |
$code | string | 閿欒鐮 |
$message | string | 閿欒淇℃伅 |
$file | string | 閿欒鏂囦欢 |
$line | integer | 閿欒琛屽彿 |
婧愮爜锛 framework/base/CErrorEvent.php#46 (鏄剧ず)
public function __construct($sender,$code,$message,$file,$line)
{
$this->code=$code;
$this->message=$message;
$this->file=$file;
$this->line=$line;
parent::__construct($sender);
}
鏋勯犲櫒.