pyflightstream.utils.errors (stable)¶
Generated from the docstrings at build time: every one of the 2 names in the __all__ of pyflightstream.utils.errors has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Refusals of the maintainer utilities.
Its own module for the reason probes.errors, qa.errors and
fsi.errors have theirs: :mod:pyflightstream.utils.manual sits at the
bottom of the layer rule and must not reach up into a layer to borrow an
exception. This module imports only the package base, which is below
everything.
Advanced¶
pyflightstream.utils.errors.ManualCallError
¶
Bases: PyflightstreamError, TypeError
A drafting function was called with the wrong argument shape.
The library raises nothing of this class today. propose_type takes its
two strings as keywords only (PFS-2022.05), so a call with the strings
positional, twice or missing raises Python's own TypeError, which is
what the signature itself refuses with. The class stays in the catalogue
for callers that name it.
TypeError as the second base, because that is what a wrong call
shape raised before the catalogue held a class for it, and what a
caller written against it would still catch (FR-39).
pyflightstream.utils.errors.ManualDraftError
¶
Bases: PyflightstreamError, ValueError
A draft was asked for something a manual cannot support.
Raised where the caller asks the drafting functions to record more
than the source they are reading can justify, the sharp case being a
verified or broken status: those are promoted from a
committed probe report by pyfs-qa apply-compat, never from a page
citation (CONTRIBUTING.md invariant 3).
ValueError as the second base, because that is what this refusal
raised before the catalogue existed and what a caller written against
it would still catch (FR-39).