Skip to content

makeAbortError

makeAbortError(reason?): Error & object

Create an abort error that matches the spec for an “AbortError”.

Optional human-readable reason or Error instance.

string | Error

Error & object

An error with name “AbortError”