MCPcopy
hub / github.com/codeaashu/claude-code / isAbortError

Function isAbortError

src/utils/errors.ts:27–33  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

25 * this.name, so string matching silently fails in production.
26 */
27export function isAbortError(e: unknown): boolean {
28 return (
29 e instanceof AbortError ||
30 e instanceof APIUserAbortError ||
31 (e instanceof Error && e.name === 'AbortError')
32 )
33}
34
35/**
36 * Custom error class for configuration file parsing errors

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected