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

Function policyViolation

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

Source from the content-addressed store, hash-verified

76type AnyConditionBuilder = ConditionBuilder<Record<string, AnyColumn>>;
77
78const policyViolation = (message: string): never => {
79 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: FumaDB table policy callbacks are promise callbacks, not Effect effects
80 throw new StorageError({ message, cause: undefined });
81};
82
83const requireContext = (
84 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