Skip to content

Compono.CompositionDiagnostic

Compono

Compono

CompositionDiagnostic Class

The structured detail behind a thrown CompositionException - what couldn't be composed, where in the graph, what was tried, and with which seed. docs/public-api.md's Diagnostics API (exception.Diagnostic).

public sealed class CompositionDiagnostic

Inheritance System.Object → CompositionDiagnostic

Remarks

ToString() renders docs/architecture.md's Diagnostics example format - the shape a consumer gets from Console.WriteLine(exception.Diagnostic).

Properties
FailedType The type that could not be composed.
Message A human-readable, remediation-oriented explanation of what went wrong.
Path The request path from the root to FailedType, rendered as a tree.
RootType The type requested at the root of this composition operation.
Seed This operation's root deterministic seed.
Trace The stage/outcome attempts tried for the failing request and its ancestors - never a sibling request that already succeeded elsewhere in this operation (docs/adr/0010-composition-request-pipeline-and-diagnostics-tracing.md's checkpoint/rewind trace buffer).
Methods
ToString() Renders this diagnostic in docs/architecture.md's Diagnostics example format.