napi_extended_error_info
typedef struct {
const char* error_message;
void* engine_reserved;
uint32_t engine_error_code;
napi_status error_code;
} napi_extended_error_info; error_message:包含 VM 中立错误描述的 UTF8 编码字符串。engine_reserved:保留用于虚拟机特定的错误详情。目前此功能尚未在任何虚拟机中实现。engine_error_code:特定于虚拟机的错误代码。目前尚未针对任何虚拟机实现此功能。error_code:与上一次错误相关的 Node-API 状态码。
有关更多信息,请参阅 错误处理 部分。
【See the Error handling section for additional information.】