qecx.QECXValidationFailedError

exception qecx.QECXValidationFailedError(message, findings=())

Bases: QECXError

Raised when validation ran successfully and produced one or more error-severity findings.

Also raised by the save-time validation step when a document is still missing required content: this exception covers both full-validation errors and incompleteness, carrying the completeness findings in findings (the same shape missing() returns).

Variables:

findings (tuple[ValidationError, ...]) – The error-severity findings the validation run produced; empty when the raiser supplies only a message.

Store the failure message and the error-severity findings.

Parameters:
  • message (str) – Human-readable failure summary.

  • findings (Sequence[ValidationError]) – The error-severity findings the run produced; normalized to a tuple.