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

Function decodeDomain

packages/runtime-host/src/protocol/connection-effects.ts:495–504  ·  view source on GitHub ↗
(operation: () => T)

Source from the content-addressed store, hash-verified

493}
494
495function decodeDomain<T>(operation: () => T): T {
496 try {
497 return operation();
498 } catch (error) {
499 if (error instanceof RuntimePolicyDomainDecodeError) {
500 throw invalidProtocolFrame(error.message);
501 }
502 throw error;
503 }
504}

Calls 1

invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected