Skip to content

Rulvar API reference


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

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

Returns

SandboxError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
codereadonly"sandbox_limit""sandbox_limit"RulvarError.code-packages/core/dist/index.d.ts
data?readonlyJsonundefined-RulvarError.datapackages/core/dist/index.d.ts
retryablereadonlybooleanundefined-RulvarError.retryablepackages/core/dist/index.d.ts

Methods

toWire()

ts
toWire(): WireError;

Defined in: packages/core/dist/index.d.ts

Returns

WireError

Inherited from

RulvarError.toWire