Compono.CompositionException..ctor
Compono¶
Compono.CompositionException¶
CompositionException Constructors¶
| Overloads | |
|---|---|
| CompositionException(CompositionDiagnostic) | Creates a CompositionException from a structured CompositionDiagnostic - the shape every pipeline-thrown instance uses, per docs/public-api.md's Diagnostics API. |
| CompositionException(CompositionDiagnostic, Exception) | Creates a CompositionException from a structured CompositionDiagnostic, preserving innerException - the shape a configured IServiceProvider throwing during stage 3's fallback sub-step uses, per docs/adr/0019-registrations-and-service-provider-injection.md ("never throw ex;, the original exception is always preserved"). |
| CompositionException(string) | Creates a CompositionException with no structured Diagnostic. |
CompositionException(CompositionDiagnostic) Constructor¶
Creates a CompositionException from a structured CompositionDiagnostic - the shape every pipeline-thrown instance uses, per docs/public-api.md's Diagnostics API.
Parameters¶
diagnostic CompositionDiagnostic
The structured detail behind this failure.
Exceptions¶
System.ArgumentNullException
diagnostic is null.
CompositionException(CompositionDiagnostic, Exception) Constructor¶
Creates a CompositionException from a structured CompositionDiagnostic, preserving innerException - the shape a configured IServiceProvider throwing during stage 3's fallback sub-step uses, per docs/adr/0019-registrations-and-service-provider-injection.md ("never throw ex;, the original exception is always preserved").
public CompositionException(Compono.CompositionDiagnostic diagnostic, System.Exception innerException);
Parameters¶
diagnostic CompositionDiagnostic
The structured detail behind this failure.
innerException System.Exception
The exception that caused this failure.
Exceptions¶
System.ArgumentNullException
diagnostic or innerException is null.
CompositionException(string) Constructor¶
Creates a CompositionException with no structured Diagnostic.
Parameters¶
message System.String
A message describing what couldn't be composed and why.