diff --git a/doc/api/errors.md b/doc/api/errors.md index 918d71c8977513..248944097f6a3f 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. + +### `ERR_INVALID_STATE` + + +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. + ### `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. - -### `ERR_QUIC_CANNOT_SET_GROUPS` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUIC_ERROR` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUIC_TLS13_REQUIRED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICCLIENTSESSION_FAILED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICCLIENTSESSION_FAILED_SETSOCKET` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSESSION_DESTROYED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSESSION_INVALID_DCID` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSESSION_UPDATEKEY` - -> Stability: 1 - Experimental - -TBD - ### `ERR_QUICSESSION_VERSION_NEGOTIATION` @@ -1801,62 +1755,6 @@ TBD TBD - -### `ERR_QUICSOCKET_DESTROYED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSOCKET_INVALID_STATELESS_RESET_SECRET_LENGTH` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSOCKET_LISTENING` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSOCKET_UNBOUND` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSTREAM_DESTROYED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSTREAM_INVALID_PUSH` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSTREAM_OPEN_FAILED` - -> Stability: 1 - Experimental - -TBD - - -### `ERR_QUICSTREAM_UNSUPPORTED_PUSH` - -> Stability: 1 - Experimental - -TBD - ### `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])`. + +### `ERR_OPERATION_FAILED` + + +An operation failed. This is typically used to signal the general failure +of an asynchronous operation. + ### `ERR_OUTOFMEMORY`