类:Error
🌐 Class: Error
一个通用的 JavaScript <Error> 对象,不表示错误发生的任何具体情况。Error 对象会捕获一个“堆栈跟踪”,详细说明 Error 被实例化时代码的位置,并且可能提供错误的文本描述。
🌐 A generic JavaScript <Error> object that does not denote any specific
circumstance of why the error occurred. Error objects capture a "stack trace"
detailing the point in the code at which the Error was instantiated, and may
provide a text description of the error.
Node.js 生成的所有错误,包括所有系统错误和 JavaScript 错误,要么是 Error 类的实例,要么继承自 Error 类。
🌐 All errors generated by Node.js, including all system and JavaScript errors,
will either be instances of, or inherit from, the Error class.