MCPcopy Index your code
hub / github.com/callstack/agent-device / throwDaemonError

Function throwDaemonError

src/daemon-error.ts:4–11  ·  view source on GitHub ↗
(error: DaemonError)

Source from the content-addressed store, hash-verified

2import type { DaemonError } from './kernel/contracts.ts';
3
4export function throwDaemonError(error: DaemonError): never {
5 throw new AppError(toAppErrorCode(error.code), error.message, {
6 ...(error.details ?? {}),
7 hint: error.hint,
8 diagnosticId: error.diagnosticId,
9 logPath: error.logPath,
10 });
11}

Callers 1

executeFunction · 0.90

Calls 1

toAppErrorCodeFunction · 0.90

Tested by

no test coverage detected