WarUI

Safe error and diagnostic messages

GRID-A29-F18P2beyond-baselinePlanned

Errors from data sources, validators, and editors are rendered as escaped text with message length caps. Stack traces and server internals are hidden in production builds, with full detail available only in dev mode.

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

Live example

A grid whose mock data source can return various failure bodies.

Expected behavior

The overlay shows an escaped, truncated message. debugMode reveals more detail in a collapsible region, still escaped.

Planned API surface

onDataErrorerrorOverlayFormatterdebugModeerrorOptions.maxMessageLength

Acceptance criteria

  • Error text is never rendered as HTML. (pending)
  • Production mode hides stack traces by default. (pending)
  • Messages longer than the limit are truncated with an ellipsis and full length disclosed in debug mode. (pending)
  • Validator messages in editors are also escaped. (pending)