MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isAbortError

Function isAbortError

packages/agent-core/src/loop/errors.ts:22–27  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

20}
21
22export function isAbortError(err: unknown): boolean {
23 if (err instanceof Error) {
24 return err.name === 'AbortError';
25 }
26 return false;
27}
28
29export function errorMessage(err: unknown): string {
30 if (err instanceof Error) return err.message;

Callers 15

abort.test.tsFile · 0.90
launchErrorMessageFunction · 0.90
executeQuestionMethod · 0.90
executionMethod · 0.90
executionMethod · 0.90
runRunnableToolCallFunction · 0.90
runTurnFunction · 0.90
logRequestFailureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected