MCPcopy Create free account
hub / github.com/apache/maka / asError

Function asError

packages/runtime-host/src/client/connection.ts:1676–1678  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1674}
1675
1676function asError(error: unknown): Error {
1677 return error instanceof Error ? error : new Error(String(error));
1678}
1679
1680function writeClientFrame(
1681 transport: RuntimeHostMessageTransport,

Callers 9

constructorMethod · 0.70
#requestOperationMethod · 0.70
#drainDomainRequestsMethod · 0.70
#readResponsesMethod · 0.70
#acceptResponseMethod · 0.70
#startLivenessProbeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected