We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799feac commit aef5630Copy full SHA for aef5630
doc/api/readline.md
@@ -102,6 +102,19 @@ The listener function is called without passing any arguments.
102
The `InterfaceConstructor` instance is finished once the `'close'` event is
103
emitted.
104
105
+### Event: `'error'`
106
+
107
+<!-- YAML
108
+added: v16.0.0
109
+-->
110
111
+The `'error'` event is emitted when an error occurs on the `input` stream associated with the `readline` `Interface`.
112
113
+The listener function is called with an Error object passed as the single argument.
114
115
+If no `'error'` event handler is attached to the `InterfaceConstructor` instance,
116
+errors will be thrown as unhandled error events, which may crash the process.
117
118
### Event: `'line'`
119
120
<!-- YAML
0 commit comments