Skip to content

Commit c692109

Browse files
authored
doc: put errors in right location
1 parent cebf21d commit c692109

File tree

1 file changed

+67
-69
lines changed

1 file changed

+67
-69
lines changed

doc/api/errors.md

Lines changed: 67 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,17 @@ A non-context-aware native addon was loaded in a process that disallows them.
23442344

23452345
A given value is out of the accepted range.
23462346

2347+
<a id="ERR_OPERATION_FAILED"></a>
2348+
2349+
### `ERR_OPERATION_FAILED`
2350+
2351+
<!-- YAML
2352+
added: v15.0.0
2353+
-->
2354+
2355+
An operation failed. This is typically used to signal the general failure
2356+
of an asynchronous operation.
2357+
23472358
<a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a>
23482359

23492360
### `ERR_PACKAGE_IMPORT_NOT_DEFINED`
@@ -2420,6 +2431,42 @@ Accessing `Object.prototype.__proto__` has been forbidden using
24202431
[`Object.setPrototypeOf`][] should be used to get and set the prototype of an
24212432
object.
24222433

2434+
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
2435+
2436+
### `ERR_QUIC_CONNECTION_FAILED`
2437+
2438+
<!-- YAML
2439+
added: REPLACEME
2440+
-->
2441+
2442+
> Stability: 1 - Experimental
2443+
2444+
Establishing a QUIC connection failed.
2445+
2446+
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
2447+
2448+
### `ERR_QUIC_ENDPOINT_CLOSED`
2449+
2450+
<!-- YAML
2451+
added: REPLACEME
2452+
-->
2453+
2454+
> Stability: 1 - Experimental
2455+
2456+
A QUIC Endpoint closed with an error.
2457+
2458+
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
2459+
2460+
### `ERR_QUIC_OPEN_STREAM_FAILED`
2461+
2462+
<!-- YAML
2463+
added: REPLACEME
2464+
-->
2465+
2466+
> Stability: 1 - Experimental
2467+
2468+
Opening a QUIC stream failed.
2469+
24232470
<a id="ERR_REQUIRE_CYCLE_MODULE"></a>
24242471

24252472
### `ERR_REQUIRE_CYCLE_MODULE`
@@ -2448,25 +2495,6 @@ To see where the top-level await is, use
24482495
`--experimental-print-required-tla` (this would execute the modules
24492496
before looking for the top-level awaits).
24502497

2451-
<a id="ERR_REQUIRE_ESM"></a>
2452-
2453-
### `ERR_REQUIRE_ESM`
2454-
2455-
<!-- YAML
2456-
changes:
2457-
- version: REPLACEME
2458-
pr-url: https://github.com/nodejs/node/pull/55085
2459-
description: require() now supports loading synchronous ES modules by default.
2460-
-->
2461-
2462-
> Stability: 0 - Deprecated
2463-
2464-
An attempt was made to `require()` an [ES Module][].
2465-
2466-
This error has been deprecated since `require()` now supports loading synchronous
2467-
ES modules. When `require()` encounters an ES module that contains top-level
2468-
`await`, it will throw [`ERR_REQUIRE_ASYNC_MODULE`][] instead.
2469-
24702498
<a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a>
24712499

24722500
### `ERR_SCRIPT_EXECUTION_INTERRUPTED`
@@ -3271,6 +3299,16 @@ removed: v12.5.0
32713299
The value passed to `postMessage()` contained an object that is not supported
32723300
for transferring.
32733301

3302+
<a id="ERR_CPU_USAGE"></a>
3303+
3304+
### `ERR_CPU_USAGE`
3305+
3306+
<!-- YAML
3307+
removed: v15.0.0
3308+
-->
3309+
3310+
The native call from `process.cpuUsage` could not be processed.
3311+
32743312
<a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a>
32753313

32763314
### `ERR_CRYPTO_HASH_DIGEST_NO_UTF16`
@@ -3610,17 +3648,6 @@ Used by the `Node-API` when `Constructor.prototype` is not an object.
36103648
A Node.js API was called in an unsupported manner, such as
36113649
`Buffer.write(string, encoding, offset[, length])`.
36123650

3613-
<a id="ERR_OPERATION_FAILED"></a>
3614-
3615-
### `ERR_OPERATION_FAILED`
3616-
3617-
<!-- YAML
3618-
added: v15.0.0
3619-
-->
3620-
3621-
An operation failed. This is typically used to signal the general failure
3622-
of an asynchronous operation.
3623-
36243651
<a id="ERR_OUTOFMEMORY"></a>
36253652

36263653
### `ERR_OUTOFMEMORY`
@@ -3644,41 +3671,22 @@ removed: v10.0.0
36443671

36453672
The `node:repl` module was unable to parse data from the REPL history file.
36463673

3647-
<a id="ERR_QUIC_CONNECTION_FAILED"></a>
3648-
3649-
### `ERR_QUIC_CONNECTION_FAILED`
3650-
3651-
<!-- YAML
3652-
added: REPLACEME
3653-
-->
3654-
3655-
> Stability: 1 - Experimental
3656-
3657-
Establishing a QUIC connection failed.
3658-
3659-
<a id="ERR_QUIC_ENDPOINT_CLOSED"></a>
3660-
3661-
### `ERR_QUIC_ENDPOINT_CLOSED`
3662-
3663-
<!-- YAML
3664-
added: REPLACEME
3665-
-->
3666-
3667-
> Stability: 1 - Experimental
3668-
3669-
A QUIC Endpoint closed with an error.
3670-
3671-
<a id="ERR_QUIC_OPEN_STREAM_FAILED"></a>
3674+
<a id="ERR_REQUIRE_ESM"></a>
36723675

3673-
### `ERR_QUIC_OPEN_STREAM_FAILED`
3676+
### `ERR_REQUIRE_ESM`
36743677

36753678
<!-- YAML
3676-
added: REPLACEME
3679+
changes:
3680+
- version: REPLACEME
3681+
pr-url: https://github.com/nodejs/node/pull/55085
3682+
description: require() now supports loading synchronous ES modules by default.
36773683
-->
36783684

3679-
> Stability: 1 - Experimental
3685+
An attempt was made to `require()` an [ES Module][].
36803686

3681-
Opening a QUIC stream failed.
3687+
This error has been deprecated since `require()` now supports loading synchronous
3688+
ES modules. When `require()` encounters an ES module that contains top-level
3689+
`await`, it will throw [`ERR_REQUIRE_ASYNC_MODULE`][] instead.
36823690

36833691
<a id="ERR_SOCKET_CANNOT_SEND"></a>
36843692

@@ -3850,16 +3858,6 @@ removed: v10.0.0
38503858
Used when an attempt is made to use a `zlib` object after it has already been
38513859
closed.
38523860

3853-
<a id="ERR_CPU_USAGE"></a>
3854-
3855-
### `ERR_CPU_USAGE`
3856-
3857-
<!-- YAML
3858-
removed: v15.0.0
3859-
-->
3860-
3861-
The native call from `process.cpuUsage` could not be processed.
3862-
38633861
<a id="openssl-error-codes"></a>
38643862

38653863
## OpenSSL Error Codes

0 commit comments

Comments
 (0)