Expand description
Error type for DACE operations.
DACE’s C core uses a sticky thread-local error code (XYY: severity X,
number YY) that is polled by the caller, and calls exit(1) on internal
panic-level failures. dace-rs instead:
- reports recoverable failures (initialization, parsing, blob import) as
Result::Errholding aDaceErrorcarrying the same numericXYYcode as the C library; - panics with a
DaceErrorpayload for numeric/domain misuse during operations (division by zero, logarithm of a non-positive DA, …), since the operator traits (Mul,Div, …) cannot returnResult; - downgrades the C library’s purely informational messages (severity
INFO/WARNING) tologrecords with documented degraded behavior, mirroring the C library instead of failing.
There is no sticky error state and no exit.
Structs§
- Dace
Error - A DACE error: a numeric
XYYcode (severityXin{1,3,6,9,10}, numberYY) plus a human-readable message, matching the C library’s error table.