Rulvar API reference / @rulvar/rulvar / FailRunError
Class: FailRunError
Defined in: packages/core/dist/index.d.ts
A declared fail-run policy engaged and closed the run as a failure (v1.35.0 review P2-1): budget.atCap: 'fail-run' after the journaled orchestrator cap decision, guards.fallback: 'fail-run' after the journaled guard verdict, or a violated orchestrate acceptance policy after the journaled acceptance decision (data.source 'orchestrator_acceptance', with the child status counts and degraded reasons in data). The run outcome is 'error' with this code; data.source names the policy ('orchestrator_budget_cap' or 'plan_guards') and data carries the decision entry reference, so the outcome is a pure roll forward of the journal on resume: no second decision, no model call, no spend.
Extends
Constructors
Constructor
new FailRunError(message, opts?): FailRunError;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
FailRunError
Overrides
Properties
| Property | Modifier | Type | Default value | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
code | readonly | "fail_run" | "fail_run" | 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 |
Methods
toWire()
toWire(): WireError;Defined in: packages/core/dist/index.d.ts