Constructs a new VivExecutionError.
A human-readable summary of the failure.
OptionalextraContext: Record<string, unknown>If applicable, an object containing additional context, such as the evaluations of certain fields or intermediate concerns.
ReadonlynameThe name for a VivExecutionError.
Optional ReadonlyextraIf applicable, an object containing additional context, such as the evaluations of certain fields or intermediate concerns.
The key names used here will be descriptive.
A custom inspect handler that produces a human-readable summary of the error.
This handler will be invoked when the error is displayed in Node via console.log,
console.error, util.inspect, or its uncaught-exception output.
Note: This method only controls the display format. The structured properties will remain available for programmatic access.
The current recursion depth in the Node inspect call.
The Node inspect options (used to determine whether colors are enabled).
A formatted string summarizing the error.
Returns a formatted human-readable summary of the error.
Error thrown when something goes wrong during Viv runtime execution.
This includes failures in the interpreter, role caster, planner, and other subsystems that act on compiled Viv content. Generally, such failures are caused by authoring errors in the compiled content bundle.
While occasionally a
VivExecutionErrorwill be thrown directly, usually execution issues will cause a child error type to be thrown:Though certainly not ideal, execution errors may be recoverable in production, e.g., by skipping a problematic construct and logging a warning.
Consumers who want to catch any execution-phase error can use
instanceof VivExecutionError.