Sync / foldkit-durable
OperationRejectedError
class · packages/durable/src/errors.ts:69
class OperationRejectedError extends Schema.TaggedError<OperationRejectedError>()(
'OperationRejectedError',
{
opId: OpId,
message: Schema.String,
reason: Schema.optional(Schema.String),
rule: Schema.optional(Schema.String),
path: Schema.optional(Schema.Array(Schema.String)),
},
) {}The application refused the operation: its authorization policy, or a law
judge found broken by the snapshot the operation leaves. reason is the
refusing rule's own words, present only when authorize returned one or a
law refused; the message repeats it so a caller that only forwards
messages still shows it. rule and path are present only for a law: its
id, and the snapshot fields it names.
In the guides
- Validation and authorizationSync / foldkit-durable
- Services, codecs, errors, metricsSync / foldkit-durable