Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / AdmissionRejectedError

Class: AdmissionRejectedError

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

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

Parameters

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

Returns

AdmissionRejectedError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeOverridesInherited fromDefined in
codereadonly"admission_rejected"RulvarError.code-packages/core/src/l0/errors.ts:327
data?readonlyJson-RulvarError.datapackages/core/src/l0/errors.ts:64
retryablereadonlyboolean-RulvarError.retryablepackages/core/src/l0/errors.ts:63

Methods

toWire()

ts
toWire(): WireError;

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

Returns

WireError

Inherited from

RulvarError.toWire