事件:'错误'


【Event: 'error'

Readable 实现的 'error' 事件可能在任何时候被触发。通常,如果底层流由于内部故障无法生成数据,或者当流实现尝试推送无效的数据块时,就可能发生这种情况。

【The 'error' event may be emitted by a Readable implementation at any time. Typically, this may occur if the underlying stream is unable to generate data due to an underlying internal failure, or when a stream implementation attempts to push an invalid chunk of data.】

监听器回调将会接收到一个单独的 Error 对象。

【The listener callback will be passed a single Error object.】