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
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
AdmissionRejectedError
Overrides
Properties
| Property | Modifier | Type | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | "admission_rejected" | RulvarError.code | - | packages/core/src/l0/errors.ts:327 |
data? | readonly | Json | - | RulvarError.data | packages/core/src/l0/errors.ts:64 |
retryable | readonly | boolean | - | RulvarError.retryable | packages/core/src/l0/errors.ts:63 |
Methods
toWire()
ts
toWire(): WireError;Defined in: packages/core/src/l0/errors.ts:75