{ } Raw JSON

bundles / papyri 0.0.10 / papyri / error_collector

module

papyri.error_collector

source: /papyri/error_collector.py :0

Members

Summary

Error bookkeeping for papyri gen.

Extended Summary

ErrorCollector is a context manager that wraps each per-qualname generation step. It distinguishes two buckets of failures:

  • expected — listed under [global.expected_errors] in the package's gen TOML; these don't fail the build.

  • unexpected — anything else; logged with a traceback and re-raised when early_error is set.

A third state, fail_unseen_error, raises UnseenError when an expected error never actually fired (so the allow-list stays trimmed).

Additional content

Error bookkeeping for papyri gen.

ErrorCollector is a context manager that wraps each per-qualname generation step. It distinguishes two buckets of failures:

  • expected — listed under [global.expected_errors] in the package's gen TOML; these don't fail the build.

  • unexpected — anything else; logged with a traceback and re-raised when early_error is set.

A third state, fail_unseen_error, raises UnseenError when an expected error never actually fired (so the allow-list stays trimmed).

Aliases

  • papyri.error_collector