无返回值 error_handler( 映射 error, 整数 caught );
([
"error" : 字符串, //
错误名称
"program" : 字符串, //
出错的程序
"object" : 物件, //
目前的物件
"line" : 整数, //
错误出现在第几行
"trace" : 映射* //
追踪回溯
])
追踪回溯的每一行都是映射, 包含以下数据:
([
"function" : 字符串, //
函数名称
"program" : 字符串, //
程序
"object" : 物件, //
物件
"file" : 字符串, //
行数所在的文件名称
"line" : 整数
// 行数
])
如果错误被 catch() 函数抓到, caught 标志 (flag) 为 1.