Class PolicyCompositionConflictException
Exception thrown when composed policies attempt to produce incompatible outputs.
Implements
Inherited Members
Namespace: ModularityKit.Mutator.Abstractions.Exceptions
Assembly: ModularityKit.Mutator.dll
Syntax
public sealed class PolicyCompositionConflictException : MutationException, ISerializable
Remarks
Initializes a new instance of the PolicyCompositionConflictException class.
Constructors
| Edit this page View SourcePolicyCompositionConflictException(string, string, IReadOnlyList<string>)
Exception thrown when composed policies attempt to produce incompatible outputs.
Declaration
public PolicyCompositionConflictException(string compositionName, string conflictKey, IReadOnlyList<string> policyNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string | compositionName | Name of the composed policy set. |
| string | conflictKey | Key or field that conflicted. |
| IReadOnlyList<string> | policyNames | Policy names that contributed to the conflict. |
Remarks
Initializes a new instance of the PolicyCompositionConflictException class.
Properties
| Edit this page View SourceCompositionName
Name of the composed policy set that detected the conflict.
Declaration
public string CompositionName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ConflictKey
Key or field that conflicted during composition.
Declaration
public string ConflictKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
PolicyNames
Policy names that contributed to the conflicting value.
Declaration
public IReadOnlyList<string> PolicyNames { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |