hydromodpy.core.exceptions#
Typed exception hierarchy for HydroModPy.
Canonical source for every *Error raised by the package. All exceptions
inherit from HydroModPyError, which carries optional sim_id and
run_id context plus a code class attribute used by the CLI to map
failures to exit codes and stable user-facing messages.
See architecture_cible/13_coherence_globale.md §1.5 for the canonical
code assignments. Codes follow the HMPY.Exxx convention.
Exceptions
|
Matplotlib / PyVista backend failure. |
|
Cache hit with an invalid fingerprint or unreadable payload. |
|
Calibration loop failure. |
|
DuckDB catalog failure. |
|
Checkpoint read/write failure. |
|
Configuration loading, validation, or resolution failure. |
|
A required configuration section or key is missing. |
|
Pydantic validation error surfaced as a typed exception. |
|
Local cache corruption or inconsistency. |
|
A dataset does not satisfy its declared contract. |
|
Input data loading, validation, or provenance failure. |
|
Remote data source (HTTP/FTP) refused or returned invalid data. |
|
Figure rendering failure. |
|
Exporter (NetCDF / CSV / VTU / GeoTIFF) failed to serialise results. |
|
Result extraction failed after a successful solver run. |
|
Requested figure name is not registered. |
|
Base class for all HydroModPy exceptions. |
|
Data inference triggered a type not whitelisted in |
|
Requested capability is not implemented by the selected solver. |
|
Two meshes expected to be congruent are not. |
|
Workflow journal write/read inconsistency. |
|
Pipeline ledger (run history) corruption or write conflict. |
|
Mesh generation or consistency failure. |
|
Mesh generator (gmsh / FloPy helper) failed to produce a valid mesh. |
|
Required climatic / hydrometric forcing is absent for the period. |
|
HTTP 5xx, 429, or timeout while fetching a remote dataset. |
|
Objective function evaluation failure. |
|
Optimizer backend (CMA, Optuna, ...) raised an unrecoverable error. |
|
Pipeline orchestration failure. |
|
Results / postprocessing failure. |
|
Pipeline cannot resume (incompatible checkpoint / config drift). |
|
A completed-step artefact failed integrity verification on resume. |
|
TOML schema version is newer than the installed HydroModPy. |
|
Solver binary missing, unreadable, or crashed before producing output. |
|
Solver reported non-convergence. |
|
Solver runtime environment (PATH, licences) is misconfigured. |
|
Solver execution failure. |
|
Invalid or inconsistent package data passed to the solver. |
|
Mass balance residual exceeds the acceptance threshold. |
|
Solver exceeded the configured wall-clock budget. |
|
A pipeline step raised an unrecoverable error. |
|
Catalog or Zarr storage failure. |
|
Duplicate / conflicting unit alias registration. |
|
Requested field name is not registered in the canonical field registry. |
|
The workflow DAG declaration contains a dependency cycle. |
|
A concurrent process holds the workspace lock. |
|
Zarr store read/write failure. |