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

Function isDaemonNetworkError

apps/kimi-web/src/api/errors.ts:92–101  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

90}
91
92export function isDaemonNetworkError(error: unknown): error is DaemonNetworkError {
93 return (
94 error instanceof DaemonNetworkError ||
95 (typeof error === 'object' &&
96 error !== null &&
97 (error as { name?: unknown }).name === 'DaemonNetworkError' &&
98 typeof (error as { method?: unknown }).method === 'string' &&
99 typeof (error as { path?: unknown }).path === 'string')
100 );
101}

Callers 2

errorDetailsFunction · 0.90
operationFailureNoticeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected