DiagnosticEvent
Transient runtime diagnostic — reports a recoverable problem (ICU template
parse/format failures, scene-stall codes, cross-scene Played/Selected reads,
etc.) for the CURRENT step. Surfaced on BonsaiRuntime.Diagnostics
(a separate channel from the event queue, since 2026-06-12), reset at the
next step boundary, and NEVER serialized — intentionally absent from
EventBaseJsonConverter. Inherits EventBase only for type-uniformity with
other runtime-emitted records; the At/Timing fields are unused.
public class DiagnosticEvent : EventBase
Inheritance System.Object → EventBase → DiagnosticEvent
Properties
Code
Stable, machine-readable code (e.g. "template.parse_failed") — safe to switch on.
public string Code { get; }
Property Value
Message
Human-readable description for logs / debug overlays.
public string Message { get; }
Property Value
Severity
Severity classification: "warning" or "error".
public string Severity { get; }
Property Value
SourceEventUuid
Uuid of the event the diagnostic originated from, when known.
public string? SourceEventUuid { get; }
Property Value
SourceNodeUuid
Uuid of the node the diagnostic originated from, when known.
public string? SourceNodeUuid { get; }
Property Value
Methods
Accept(IEventQueueVisitor)
Dispatches to Visit(DiagnosticEvent).
public override void Accept(IEventQueueVisitor visitor);
Parameters
visitor IEventQueueVisitor
Visitor to dispatch this event to.
Inherited Properties
| Member | Source |
|---|---|
At | inherited from EventBase |
Timing | inherited from EventBase |