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

Function createRequestCanceledError

src/daemon/request-cancel.ts:84–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84export function createRequestCanceledError(): AppError {
85 return new AppError('COMMAND_FAILED', REQUEST_CANCELED_MESSAGE, {
86 reason: REQUEST_CANCELED_REASON,
87 });
88}
89
90export function throwIfRequestCanceled(requestId: string | undefined): void {
91 if (isRequestCanceled(requestId)) {

Callers 10

completeOpenCommandFunction · 0.90
createSocketServerFunction · 0.90
waitForRunnerFunction · 0.90
sendRunnerCommandOnceFunction · 0.90
tryRunnerEndpointsFunction · 0.90
throwIfRequestCanceledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected