Rulvar API reference / @rulvar/rulvar / SandboxError
Class: SandboxError
Defined in: packages/core/dist/index.d.ts
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/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
SandboxError
Overrides
Properties
| Property | Modifier | Type | Default value | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
code | readonly | "sandbox_limit" | "sandbox_limit" | RulvarError.code | - | packages/core/dist/index.d.ts |
data? | readonly | Json | undefined | - | RulvarError.data | packages/core/dist/index.d.ts |
retryable | readonly | boolean | undefined | - | RulvarError.retryable | packages/core/dist/index.d.ts |
Methods
toWire()
ts
toWire(): WireError;Defined in: packages/core/dist/index.d.ts