异常
跟原始 Exception 的区别在于有“深度”的概念,以便更及时的判断错误内容 例如 MySQL 报 sql 语句为空,我们更想知道是哪里发送空 sql, 这个位置信息其实是在 trace 的第三行而非第一行
package |
Tango |
---|---|
author |
Zheng Kai zhengkai@gmail.com |
__construct(string $sMessage, integer $iDepth, integer $iCode)
access |
public |
---|---|
string
报错信息
integer
深度
integer
错误代码
errorHandler(integer $iError, string $sMsg, string $sFile, string $sLine) : boolean
static | |
---|---|
access |
public |
integer
string
string
string
boolean
getLastError() : string
static | |
---|---|
access |
public |
string
handler(\Exception $e, boolean $bSend = TRUE) : string
static | |
---|---|
access |
public |
\Exception
boolean
string
register() : void
static | |
---|---|
access |
public |
_iDepth :
_sLastError :