Rulvar API reference / @rulvar/rulvar / EffectLaneRefusedError
Class: EffectLaneRefusedError
Defined in: packages/core/dist/index.d.ts
The effect lane refused an operation, typed and fail closed (plan 45, rfcs/effects.md): a consumption whose verdict no longer holds, a dispatch the state table forbids (re-dispatch after a revocation), a budget the intent has exhausted, an intake the protocol rejects (an effect approval without a deadline), or a store without the capabilities the lane requires. Never retryable by the engine's wire machinery: the lane's own recovery rules (reload, find the operation id, re-verdict) are the only legal retry, and they live in the writer, not in RetryPolicy.
Extends
Constructors
Constructor
new EffectLaneRefusedError(
rule,
message,
opts?): EffectLaneRefusedError;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
rule | string |
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
EffectLaneRefusedError
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|---|
code | readonly | "effect_refused" | "effect_refused" | - | RulvarError.code | - | packages/core/dist/index.d.ts |
data? | readonly | Json | undefined | - | - | RulvarError.data | packages/core/dist/index.d.ts |
retryable | readonly | boolean | undefined | - | - | RulvarError.retryable | packages/core/dist/index.d.ts |
rule | readonly | string | undefined | The protocol rule that refused, kebab-case, stable. | - | - | packages/core/dist/index.d.ts |
Methods
toWire()
toWire(): WireError;Defined in: packages/core/dist/index.d.ts