Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / AdmissionRejectedError

Class: AdmissionRejectedError

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

A structural admission rejection (maxDepth, maxChildrenPerNode, maxTotalSpawns) from the AdmissionController (M6-T06). The rejection verdict is embedded in the carrying spawn-admission decision entry and replays identically; the error surfaces the embedded AdmitRejectReason in data to the caller (a typed tool error for orchestrators) and MUST NOT tear down the run. Budget-code rejections throw BudgetExhaustedError instead, keeping the budget exhaustion semantics (https://docs.rulvar.com/guide/budgets).

Extends

Constructors

Constructor

ts
new AdmissionRejectedError(message, opts?): AdmissionRejectedError;

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

Parameters

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

Returns

AdmissionRejectedError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
codereadonly"admission_rejected""admission_rejected"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

Methods

toWire()

ts
toWire(): WireError;

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

Returns

WireError

Inherited from

RulvarError.toWire