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

Function decodeDomain

packages/runtime-host/src/protocol/runtime-policy.ts:1062–1071  ·  view source on GitHub ↗
(decode: () => T)

Source from the content-addressed store, hash-verified

1060}
1061
1062function decodeDomain<T>(decode: () => T): T {
1063 try {
1064 return decode();
1065 } catch (error) {
1066 if (error instanceof RuntimePolicyDomainDecodeError) {
1067 throw invalidProtocolFrame(error.message);
1068 }
1069 throw error;
1070 }
1071}

Callers 15

decodeCatalogQueryResultFunction · 0.70
catalogPageItemFunction · 0.70
connectionStaleFunction · 0.70
invalidDefaultTargetFunction · 0.70

Calls 1

invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected