Error Types
OpenQuantum provides comprehensive error handling with contextual information:
Error Types
| Error Type | Description |
|---|---|
ParseError | Input parsing errors with line numbers |
BasisError | Basis set loading/parsing errors |
ScfError | SCF convergence and calculation errors |
LinalgError | Linear algebra errors with condition numbers |
IoError | File I/O errors with file paths |
NumericalError | Numerical issues (NaN, Inf, singularity) |
Error Hierarchy
All errors implement the std::error::Error trait and provide:
- Human-readable description
- Source error chain (when applicable)
- Contextual information (line numbers, file paths, condition numbers)