diff options
author | James M Snell <jasnell@gmail.com> | 2020-07-08 21:18:25 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-07-10 23:51:13 +0300 |
commit | 5e769b2eaf4595e9c8c429c8ae9bb4b32e6a7c8f (patch) | |
tree | f3eab5aaf3b21792a03016ca1d39df963a632113 /doc/api/errors.md | |
parent | d36e832a32dfb0c0c49bf9e3dee93ff231c97eb0 (diff) |
quic: use less specific error codes
Stop the madness. Only you can prevent excessive error code
proliferation.
PR-URL: https://github.com/nodejs/node/pull/34262
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r-- | doc/api/errors.md | 131 |
1 files changed, 19 insertions, 112 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md index 918d71c8977..248944097f6 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1440,6 +1440,16 @@ type for one of its returned object properties on execution. Thrown in case a function option does not return an expected value type on execution, such as when a function is expected to return a promise. +<a id="ERR_INVALID_STATE"></a> +### `ERR_INVALID_STATE` +<!-- YAML +added: REPLACEME +--> + +Indicates that an operation cannot be completed due to an invalid state. +For instance, an object may have already been destroyed, or may be +performing another operation. + <a id="ERR_INVALID_SYNC_FORK_INPUT"></a> ### `ERR_INVALID_SYNC_FORK_INPUT` @@ -1738,62 +1748,6 @@ Accessing `Object.prototype.__proto__` has been forbidden using [`Object.setPrototypeOf`][] should be used to get and set the prototype of an object. -<a id="ERR_QUIC_CANNOT_SET_GROUPS"></a> -### `ERR_QUIC_CANNOT_SET_GROUPS` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUIC_ERROR"></a> -### `ERR_QUIC_ERROR` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUIC_TLS13_REQUIRED"></a> -### `ERR_QUIC_TLS13_REQUIRED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICCLIENTSESSION_FAILED"></a> -### `ERR_QUICCLIENTSESSION_FAILED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICCLIENTSESSION_FAILED_SETSOCKET"></a> -### `ERR_QUICCLIENTSESSION_FAILED_SETSOCKET` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSESSION_DESTROYED"></a> -### `ERR_QUICSESSION_DESTROYED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSESSION_INVALID_DCID"></a> -### `ERR_QUICSESSION_INVALID_DCID` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSESSION_UPDATEKEY"></a> -### `ERR_QUICSESSION_UPDATEKEY` - -> Stability: 1 - Experimental - -TBD - <a id="ERR_QUICSESSION_VERSION_NEGOTIATION"></a> ### `ERR_QUICSESSION_VERSION_NEGOTIATION` @@ -1801,62 +1755,6 @@ TBD TBD -<a id="ERR_QUICSOCKET_DESTROYED"></a> -### `ERR_QUICSOCKET_DESTROYED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSOCKET_INVALID_STATELESS_RESET_SECRET_LENGTH"></a> -### `ERR_QUICSOCKET_INVALID_STATELESS_RESET_SECRET_LENGTH` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSOCKET_LISTENING"></a> -### `ERR_QUICSOCKET_LISTENING` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSOCKET_UNBOUND"></a> -### `ERR_QUICSOCKET_UNBOUND` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSTREAM_DESTROYED"></a> -### `ERR_QUICSTREAM_DESTROYED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSTREAM_INVALID_PUSH"></a> -### `ERR_QUICSTREAM_INVALID_PUSH` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSTREAM_OPEN_FAILED"></a> -### `ERR_QUICSTREAM_OPEN_FAILED` - -> Stability: 1 - Experimental - -TBD - -<a id="ERR_QUICSTREAM_UNSUPPORTED_PUSH"></a> -### `ERR_QUICSTREAM_UNSUPPORTED_PUSH` - -> Stability: 1 - Experimental - -TBD - <a id="ERR_REQUIRE_ESM"></a> ### `ERR_REQUIRE_ESM` @@ -2488,6 +2386,15 @@ Used by the `N-API` when `Constructor.prototype` is not an object. A Node.js API was called in an unsupported manner, such as `Buffer.write(string, encoding, offset[, length])`. +<a id="ERR_OPERATION_FAILED"></a> +### `ERR_OPERATION_FAILED` +<!-- YAML +added: REPLACEME +--> + +An operation failed. This is typically used to signal the general failure +of an asynchronous operation. + <a id="ERR_OUTOFMEMORY"></a> ### `ERR_OUTOFMEMORY` <!-- YAML |