CADETProcess.evaluation_pipeline.EvaluationFailure#

class CADETProcess.evaluation_pipeline.EvaluationFailure(stage: str, reason: str, recoverable: bool = False, exc: BaseException | None = None)[source]#

Bases: object

Propagating failure token returned when a pipeline node cannot produce a result.

Instead of raising, failed nodes return an EvaluationFailure. Downstream nodes detect it and pass it through without executing. The bad_metrics fallback at the optimizer boundary is a separate concern handled by OptimizationProblem (step 6).

Parameters:
stagestr

output_name of the node that failed or first propagated the failure.

reasonstr

Human-readable description of the failure cause.

recoverablebool

Whether the caller may attempt to recover (e.g. retry with a different x). The default is False.

excBaseException or None

The original exception, if any. Preserved for debugging and re-raising.

exc: BaseException | None = None#
reason: str#
recoverable: bool = False#
stage: str#