Skip to content

Rulvar API reference


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

ts
new EffectLaneRefusedError(
   rule, 
   message, 
   opts?): EffectLaneRefusedError;

Defined in: packages/core/dist/index.d.ts

Parameters

ParameterType
rulestring
messagestring
opts?{ cause?: unknown; data?: Json; }
opts.cause?unknown
opts.data?Json

Returns

EffectLaneRefusedError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDefault valueDescriptionOverridesInherited fromDefined in
codereadonly"effect_refused""effect_refused"-RulvarError.code-packages/core/dist/index.d.ts
data?readonlyJsonundefined--RulvarError.datapackages/core/dist/index.d.ts
retryablereadonlybooleanundefined--RulvarError.retryablepackages/core/dist/index.d.ts
rulereadonlystringundefinedThe protocol rule that refused, kebab-case, stable.--packages/core/dist/index.d.ts

Methods

toWire()

ts
toWire(): WireError;

Defined in: packages/core/dist/index.d.ts

Returns

WireError

Inherited from

RulvarError.toWire