Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

errorValue

function errorValue(code, message): Value;

Defined in: packages/engine/src/vm/Value.ts:1531

Create an Error value, propagated through the DAG when a plugin raises an error. The value field stores the EngineError code, unit stores the message. Downstream consumers (lines that depend on errored data) bubble this up. Should NEVER be stored in the arena.

ParameterType
codestring
messagestring

Value