assert.AssertionError 类


表示断言的失败。 node:assert 模块抛出的所有错误都是 AssertionError 类的实例。

Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class.