HeliaAotError
PythonBase class for user-facing heliaAOT failures.
HeliaAotError(message: str, *, hint: str | None = None, details: str | None = None)Base class for user-facing heliaAOT failures.
The class decides how the command line exits, by one rule. A class whose
errors mean the user’s input was rejected declares exit_code 2: the
command line, the configuration, a file it names (the model, the golden
data, the output location), the choice of model type or format, or the
target. Every other class keeps 1: a valid request failed while
converting, for example a model construct heliaAOT cannot lower, or
memory that does not fit. When the check runs does not matter, so input
rejected after the model has loaded still exits 2. The command line exits
with the exit_code of the error that ended it and reads no other
rule.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | Required | What went wrong, phrased for the user. |
hint | str | None | None | One actionable next step (rendered dim below the error). |
details | str | None | None | Supporting output (e.g. tool stderr), rendered dim. |
exit_code
Pythonexit_code: int = 1The command line’s exit status for this error.
hint
Pythonhint = hintdetails
Pythondetails = details