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. Exposed via exception.Diagnostic - see Troubleshooting: Runtime composition failures.
Inheritance System.Object → CompositionDiagnostic
Remarks¶
ToString() renders the tree-shaped format documented in Troubleshooting: Runtime composition failures - 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 Troubleshooting's tree-shaped Diagnostics example format. |