exception documentation

A machine file has one or more mistakes in it.

A file is checked whole before anything is built, so this is the one declaration error that carries several problems. Each names its place as a path through the file, such as component[1].monitoring[2].message_type.

Method __init__ Keep the problems, and print each of them under a heading that counts them.
Instance Variable problems (path, message) for each mistake, in file order. A mistake about the file as a whole, such as TOML that does not parse, has the empty path.
Instance Variable source Undocumented
def __init__(self, problems: Iterable[tuple[str, str]], *, source: str | None = None):

Keep the problems, and print each of them under a heading that counts them.

problems =

(path, message) for each mistake, in file order. A mistake about the file as a whole, such as TOML that does not parse, has the empty path.

source =

Undocumented