Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / EffectLaneRefusedError

Class: EffectLaneRefusedError

Defined in: packages/core/src/l0/errors.ts:372

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/src/l0/errors.ts:377

Parameters

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

Returns

EffectLaneRefusedError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
codereadonly"effect_refused"-RulvarError.code-packages/core/src/l0/errors.ts:373
data?readonlyJson--RulvarError.datapackages/core/src/l0/errors.ts:64
retryablereadonlyboolean--RulvarError.retryablepackages/core/src/l0/errors.ts:63
rulereadonlystringThe protocol rule that refused, kebab-case, stable.--packages/core/src/l0/errors.ts:375

Methods

toWire()

ts
toWire(): WireError;

Defined in: packages/core/src/l0/errors.ts:75

Returns

WireError

Inherited from

RulvarError.toWire