From 2e20cd4fde46e190a96e007c2ffec48670e5a1a3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 4 Jul 2020 06:26:30 -0700 Subject: [PATCH] doc: remove errors that were never released Refs: https://github.com/nodejs/node/pull/33764#issuecomment-653667275 PR-URL: https://github.com/nodejs/node/pull/34197 Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- doc/api/errors.md | 72 ----------------------------------------------- 1 file changed, 72 deletions(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index 4dda1105dd8218..1a6f7141891b4e 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -2487,78 +2487,6 @@ removed: v10.0.0 Used when an attempt is made to use a `zlib` object after it has already been closed. -### Other error codes - -These errors have never been released, but had been present on master between -releases. - - -#### `ERR_ENTRY_TYPE_MISMATCH` - -The `--entry-type=commonjs` flag was used to attempt to execute an `.mjs` file -or a `.js` file where the nearest parent `package.json` contains -`"type": "module"`; or -the `--entry-type=module` flag was used to attempt to execute a `.cjs` file or -a `.js` file where the nearest parent `package.json` either lacks a `"type"` -field or contains `"type": "commonjs"`. - - -#### `ERR_FS_WATCHER_ALREADY_STARTED` - -An attempt was made to start a watcher returned by `fs.watch()` that has -already been started. - - -#### `ERR_FS_WATCHER_NOT_STARTED` - -An attempt was made to initiate operations on a watcher returned by -`fs.watch()` that has not yet been started. - - -#### `ERR_HTTP2_ALREADY_SHUTDOWN` - -Occurs with multiple attempts to shutdown an HTTP/2 session. - - -#### `ERR_HTTP2_ERROR` - -A non-specific HTTP/2 error has occurred. - - -#### `ERR_INVALID_REPL_HISTORY` - -Used in the `repl` in case the old history file is used and an error occurred -while trying to read and parse it. - - -#### `ERR_INVALID_REPL_TYPE` - -The `--entry-type=...` flag is not compatible with the Node.js REPL. - - -#### `ERR_STREAM_HAS_STRINGDECODER` - -Used to prevent an abort if a string decoder was set on the Socket. - -```js -const Socket = require('net').Socket; -const instance = new Socket(); - -instance.setEncoding('utf8'); -``` - - -#### `ERR_STRING_TOO_LARGE` - -An attempt has been made to create a string larger than the maximum allowed -size. - - -#### `ERR_TTY_WRITABLE_NOT_READABLE` - -This `Error` is thrown when a read is attempted on a TTY `WriteStream`, -such as `process.stdout.on('data')`. - [`'uncaughtException'`]: process.html#process_event_uncaughtexception [`--disable-proto=throw`]: cli.html#cli_disable_proto_mode [`--force-fips`]: cli.html#cli_force_fips