Rulvar API reference / @rulvar/core / SandboxError
Class: SandboxError
Defined in: packages/core/src/l0/errors.ts:341
A WorkerSandboxRunner resource-limit breach (M6-T02): crossing timeoutMs or memoryMb terminates the worker and the run completes with outcome 'error' carrying this error's WireError projection; data records { reason: 'timeout' | 'memory', limit }. The class itself is never journaled as an entry of its own.
Extends
Constructors
Constructor
ts
new SandboxError(message, opts?): SandboxError;Defined in: packages/core/src/l0/errors.ts:344
Parameters
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
SandboxError
Overrides
Properties
| Property | Modifier | Type | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
code | readonly | "sandbox_limit" | RulvarError.code | - | packages/core/src/l0/errors.ts:342 |
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