Skip to content

Class BehaviorFeatureDisabledException

Namespace: Cephalon.Abstractions.Behaviors
Assembly: Cephalon.Abstractions.dll

Thrown when a behavior declares one or more required feature flags and the active runtime evaluation context does not satisfy one of them.

public sealed class BehaviorFeatureDisabledException : Exception, ISerializable

objectExceptionBehaviorFeatureDisabledException

ISerializable

Exception.GetBaseException(), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

BehaviorFeatureDisabledException(string, string, IReadOnlyList<string>, string, FeatureFlagSourceKind?, string?)

Section titled “ BehaviorFeatureDisabledException(string, string, IReadOnlyList<string>, string, FeatureFlagSourceKind?, string?)”

Initializes a new instance of .

public BehaviorFeatureDisabledException(string behaviorId, string featureFlagId, IReadOnlyList<string> requiredFeatureFlagIds, string reason, FeatureFlagSourceKind? sourceKind = null, string? sourceModuleId = null)

behaviorId string

The behavior identifier that was blocked.

featureFlagId string

The specific required feature flag that evaluated to disabled.

requiredFeatureFlagIds IReadOnlyList<string>

The full ordered set of required feature flags.

reason string

The evaluation reason returned by the feature-toggle runtime.

sourceKind FeatureFlagSourceKind?

The ownership kind of the resolved feature flag when one exists.

sourceModuleId string?

The owning module identifier when the resolved feature flag is module-owned.

Gets the behavior identifier that was blocked.

public string BehaviorId { get; }

string

Gets the required feature flag that evaluated to disabled for the active runtime context.

public string FeatureFlagId { get; }

string

Gets the operator-facing evaluation reason that explained why the feature flag was not available for the current runtime context.

public string Reason { get; }

string

Gets the full ordered set of required feature flags declared by the behavior.

public IReadOnlyList<string> RequiredFeatureFlagIds { get; }

IReadOnlyList<string>

Gets the ownership kind of the resolved feature flag when one exists.

public FeatureFlagSourceKind? SourceKind { get; }

FeatureFlagSourceKind?

Gets the owning module identifier when the resolved feature flag is module-owned.

public string? SourceModuleId { get; }

string?