errors
heliaAOT Errors API
Typed error hierarchy for user-facing failures. A HeliaAotError carries an
optional hint (one actionable next step) and optional details (e.g.
subprocess output); the CLI renders these as a clean Error: line with a dim
hint instead of a traceback, and exits 1.
Copyright 2025 Ambiq. All Rights Reserved.
Classes
HeliaAotError
ModelLoadError
The input model could not be found or parsed.
Also a FileNotFoundError so callers catching the stdlib type keep
working.
OutputExistsError
An output path already exists and --force was not given.
Also a FileExistsError so callers catching the stdlib type keep
working.
ConfigValueError
A configuration value is invalid for the requested conversion.
Also a ValueError so callers catching the stdlib type keep working.
UnsupportedModelError
The input model uses a structure or dtype heliaAOT cannot lower.
Raised when a graph is recognized but cannot be compiled, so the message
can name the recognized construct and the hint can state the supported
form. Also a ValueError so callers catching the stdlib type keep
working.