Skip to content

QualityGateFailedException

NexusLabs.Needlr.AgentFramework.Evaluation

QualityGateFailedException Class

Thrown by Assert(EvaluationResult[]) when one or more evaluation metrics violate their configured thresholds.

public sealed class QualityGateFailedException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 QualityGateFailedException

Constructors

QualityGateFailedException(IReadOnlyList<string>) Constructor

Creates a new exception from the list of threshold violations.

public QualityGateFailedException(System.Collections.Generic.IReadOnlyList<string> violations);

Parameters

violations System.Collections.Generic.IReadOnlyList<System.String>

One or more violation descriptions.

Properties

QualityGateFailedException.Violations Property

Gets the individual threshold violations that triggered the failure.

public System.Collections.Generic.IReadOnlyList<string> Violations { get; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>