Paper Office
paper-xlsxAPI referenceerrors

PaperRefusal

paper-xlsx 0.2.1 API reference

Base class for all safe refusals.

Refusals are atomic: when one is raised, the workbook model, the dirty ledger, and every file on disk are exactly as they were before the refused operation began.

Structured fields (populated progressively — message text is always the source of truth):

  • kind: stable machine-readable string ("ambiguous-label", ...)
  • anchor: sheet-qualified address or part name the refusal is about, or None
  • options: suggested remedies / candidate addresses (list)
PaperRefusal(*args, kind=None, anchor=None, options=None)

Attributes

anchor

attributeanchor
= anchor

kind

attributekind
= kind

options

attributeoptions
= list(options) if options else []

On this page