Rulvar API reference / @rulvar/rulvar / RulvarError
Abstract Class: RulvarError
Defined in: packages/core/dist/index.d.ts
Base class for all engine-raised errors. "Retryable" means the engine's own retry machinery (RetryPolicy under the journal) MAY retry; it never means a provider SDK autoretry, which is disabled.
Extends
Error
Extended by
AdmissionRejectedErrorBudgetExhaustedErrorConfigErrorDeterminismErrorEffectLaneRefusedErrorFailRunErrorInvalidResolutionErrorJournalCompatibilityErrorJournalIntegrityErrorJournalMissErrorJournalOrderViolationJournalSealedErrorKnowledgeCasErrorLeaseHeldErrorNonSerializableValueErrorOrchestratorCapConfigErrorPlanInvariantErrorReplayPlanHashMismatchSandboxErrorScriptRejectedSettlementErrorSupersededError
Constructors
Constructor
ts
new RulvarError(message, opts?): RulvarError;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; retryable?: boolean; } |
opts.cause? | unknown |
opts.data? | Json |
opts.retryable? | boolean |
Returns
RulvarError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
code | abstract | ErrorCode | packages/core/dist/index.d.ts |
data? | readonly | Json | packages/core/dist/index.d.ts |
retryable | readonly | boolean | packages/core/dist/index.d.ts |
Methods
toWire()
ts
toWire(): WireError;Defined in: packages/core/dist/index.d.ts