MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / policyViolation

Function policyViolation

packages/core/sdk/src/owner-policy.ts:37–40  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

35type AnyConditionBuilder = ConditionBuilder<Record<string, AnyColumn>>;
36
37const policyViolation = (message: string): never => {
38 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: FumaDB table policy callbacks are promise callbacks, not Effect effects
39 throw new StorageError({ message, cause: undefined });
40};
41
42const requireContext = (
43 tableName: string,

Callers 4

requireContextFunction · 0.85
assertOwnerWritableFunction · 0.85
assertOwnerPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected