类:SystemError


【Class: SystemError

当 Node.js 在其运行环境中发生异常时,会生成系统错误。这些错误通常发生在应用违反操作系统约束时。例如,如果应用尝试读取不存在的文件,就会发生系统错误。

【Node.js generates system errors when exceptions occur within its runtime environment. These usually occur when an application violates an operating system constraint. For example, a system error will occur if an application attempts to read a file that does not exist.】

  • address <string> 如果存在,表示网络连接失败的地址
  • code <string> 字符串形式的错误代码
  • dest <string> 如果存在,报告文件系统错误时的文件路径目标
  • errno <number> 系统提供的错误编号
  • info <Object> 如果存在,关于错误情况的额外信息
  • message <string> 系统提供的可读错误描述
  • path <string> 如果存在,报告文件系统错误时的文件路径
  • port <number> 如果存在,网络连接不可用的端口
  • syscall <string> 引发错误的系统调用名称