Compono.CompositionConfigurationException
Compono¶
Compono¶
CompositionConfigurationException Class¶
Thrown when Create(Action<CompositionBuilder>)'s validation finds one or more conflicts in the accumulated configuration.
Inheritance System.Object → System.Exception → CompositionConfigurationException
Remarks¶
Distinct from CompositionException: this is a configuration-time failure, thrown once while building a Composer, never from a running Create<T>()/ CreateMany<T>(int) call. See docs/adr/0017-immutable-composer-configuration-and-builder-model.md's Amendment.
| Constructors | |
|---|---|
| CompositionConfigurationException(IReadOnlyList<CompositionConfigurationError>) | Creates a CompositionConfigurationException from one or more structured errors. Its System.Exception.Message is rendered from errors, not the other way around - inspect Errors directly rather than parsing the message. |
| Properties | |
|---|---|
| Errors | Every conflict found - always at least one. A genuinely immutable snapshot (Compono.ImmutableSnapshot) taken at construction, never the caller-supplied list itself and never a plain array a caller could cast back to and mutate - it can never drift from the already-rendered System.Exception.Message, which is derived from this exact same snapshot. |