MCPcopy Create free account
hub / github.com/langgenius/dify / exitFor

Function exitFor

cli/src/errors/codes.ts:61–63  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

59}
60
61export function exitFor(code: string): ExitCodeValue {
62 return (CODE_TO_EXIT as Record<string, ExitCodeValue>)[code] ?? ExitCode.Generic
63}
64
65export const ALL_ERROR_CODES: readonly ErrorCodeValue[] = Object.values(ErrorCode)
66export const CODE_TO_EXIT_MAP: Readonly<Record<ErrorCodeValue, ExitCodeValue>> = CODE_TO_EXIT

Callers 2

exitMethod · 0.90
codes.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected