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

Function policyViolation

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

Source from the content-addressed store, hash-verified

71type AnyConditionBuilder = ConditionBuilder<Record<string, AnyColumn>>;
72
73const policyViolation = (message: string): never => {
74 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: FumaDB table policy callbacks are promise callbacks, not Effect effects
75 throw new StorageError({ message, cause: undefined });
76};
77
78const requireContext = (
79 tableName: string,

Callers 5

requireContextFunction · 0.85
assertReachReadOnlyFunction · 0.85
assertOwnerWritableFunction · 0.85
assertOwnerPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected