qecx.QECXAuthoringError

exception qecx.QECXAuthoringError(message, rule=None, offenders=())

Bases: QECXError

Raised when a document-authoring step cannot be applied.

Covers the add-time document-consistency failures of authoring calls: an entry that duplicates or contradicts what the document already declares, or that references a declaration that does not exist.

Variables:
  • rule (str | None) – Identifier of the violated document rule, when the failing check mirrors one; None otherwise.

  • offenders (tuple[object, ...]) – The objects that pinpoint the failure: the invalid or unresolved elements of the call’s input, or the registered elements that conflict with or block the call. Empty when no such object exists (a bare-name lookup, an unknown field name, a failed rebuild construction).

Store the failure message with the optional rule and offenders.

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

  • rule (str | None) – Identifier of the violated document rule.

  • offenders (Sequence[object]) – The objects that pinpoint the failure; normalized to a tuple.