WarUI

Documented error values

GRID-A13-F07P0baselinePlanned

WarGrid defines a fixed, documented set of error values: #DIV/0!, #VALUE!, #REF!, #NAME?, #N/A, #NUM!, #NULL!, #CYCLE! and #ERROR!. Each has a precise trigger, a propagation rule and a human-readable message. Errors render with a style and a tooltip, and they can be tested programmatically.

Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A gallery grid with one row per error type, each showing a formula that triggers it.

Expected behavior

Each row shows its error code, and hovering or focusing it shows the message, the cause and a suggested fix. Switching locale translates the messages while the codes stay stable.

Planned API surface

type: FormulaError {type, message, address}function: isFormulaError(value)option: formulas.errorRendereroption: formulas.errorMessages (i18n)event: formulaError

Acceptance criteria

  • Every error type has a documented trigger and fix, plus a test that reproduces it. (pending)
  • Errors propagate through arithmetic, while IFERROR or ISERROR can catch them. (pending)
  • Error codes are locale-independent constants. (pending)
  • getCellValue returns a FormulaError object, not a string. (pending)