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.ObjectEventBase → DiagnosticEvent

Properties

Code

Stable, machine-readable code (e.g. "template.parse_failed") — safe to switch on.

public string Code { get; }
Property Value

System.String

Message

Human-readable description for logs / debug overlays.

public string Message { get; }
Property Value

System.String

Severity

Severity classification: "warning" or "error".

public string Severity { get; }
Property Value

System.String

SourceEventUuid

Uuid of the event the diagnostic originated from, when known.

public string? SourceEventUuid { get; }
Property Value

System.String

SourceNodeUuid

Uuid of the node the diagnostic originated from, when known.

public string? SourceNodeUuid { get; }
Property Value

System.String

Methods

Accept(IEventQueueVisitor)

Dispatches to Visit(DiagnosticEvent).

public override void Accept(IEventQueueVisitor visitor);
Parameters

visitor IEventQueueVisitor

Visitor to dispatch this event to.

Inherited Properties

MemberSource
Atinherited from EventBase
Timinginherited from EventBase
Docs last synced: 2026-07-08
Screenshot viewer