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:UTF8 编码的字符串,包含错误的 VM 中立描述。

    ¥error_message: UTF8-encoded string containing a VM-neutral description of the error.

  • engine_reserved:为特定于 VM 的错误详细信息保留。目前尚未为任何 VM 实现此功能。

    ¥engine_reserved: Reserved for VM-specific error details. This is currently not implemented for any VM.

  • engine_error_code:特定于 VM 的错误代码。目前尚未为任何 VM 实现此功能。

    ¥engine_error_code: VM-specific error code. This is currently not implemented for any VM.

  • error_code:源自最后一个错误的 Node-API 状态代码。

    ¥error_code: The Node-API status code that originated with the last error.

有关其他信息,请参阅 错误处理 部分。

¥See the Error handling section for additional information.