API reference > @kontsedal/olas-core > isAbortError
isAbortError() function โ
True iff err looks like an AbortError. Matches the standard DOMException shape thrown by AbortController AND any object whose name === 'AbortError' โ that covers axios / msw / user-thrown plain Errors that signal abort.
Spec: ยง20.12. Node 17+ exposes a global DOMException, so the instanceof branch works server-side; the name-based branch is the portable fallback.
Signature:
typescript
export declare function isAbortError(err: unknown): boolean;Parameters โ
Parameter | Type | Description |
|---|---|---|
err | unknown |
Returns:
boolean