diff --git a/doc/api/errors.md b/doc/api/errors.md index ece60bdbc34e2d..a818986d513063 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -612,6 +612,18 @@ A human-readable string describing the reason for the error. ## Node.js error codes + +### `ABORT_ERR` + +Used when an operation has been aborted (typically using an `AbortController`). + +APIs _not_ using `AbortSignal`s typically do not raise an error with this code. + +This code does not use the regular `ERR_*` convention Node.js errors use in +order to be compatible with the web platform's `AbortError`. + ### `ERR_AMBIGUOUS_ARGUMENT`