Errors#
Every failure mode in heliaPROFILER raises a subclass of HpxError. Catch
HpxError for a catch-all, or a specific subclass to handle one failure
category. Most carry an optional hint attribute — a short, human-readable
suggestion for how to fix the problem — which is appended automatically when
the exception is formatted as a string.
HpxError #
Bases: Exception
Base exception for all heliaPROFILER errors.
ConfigError #
PlatformError #
EngineError #
FirmwareError #
BuildError #
BuildError(message: str, *, hint: str | None = None, returncode: int | None = None, details: str | None = None)
Bases: HpxError
NSX configure / build / flash / lock / sync failure.
Carries the underlying tool's diagnostic output (cmake / ninja /
SEGGER commander / git stderr, NSX exception message, etc.) in
:attr:details. When the source is a real subprocess, the original
return code is also captured in :attr:returncode.
NetworkError #
NetworkError(message: str, *, hint: str | None = None, returncode: int | None = None, details: str | None = None)
Bases: BuildError
Transient network failure during sync/lock (git fetch, module download).
Subclass of :class:BuildError so existing except BuildError handlers
still catch it, but callers that want to retry can specifically catch this.