Exceptions and error codes#
The classes of hydromodpy.core.exceptions all derive from HydroModPyError. Each one carries a
code of the form HMPY.Exxx, a one-line title(), and to_dict(), which renders the failure as
a typed problem object. A few errors are defined beside the code that raises them (last section), and
some calls raise built-in exceptions such as FileNotFoundError. The hierarchy is at the top level of
the package:
try:
hmp.run("path/to/config.toml")
except hmp.ConfigError as err:
print(err.code, err) # HMPY.E100, or the code of a subclass
Catching a parent class catches its subclasses. The command line maps each class to an exit code:
Exit codes. To look up a code you met, find its row in the table: HMPY.E405 is one
row.
Hierarchy#
HydroModPyErrorHMPY.E000CommandUsageErrorHMPY.E001NothingThereErrorHMPY.E002OldNameErrorHMPY.E003ConfigErrorHMPY.E100ConfigValidationErrorHMPY.E101ConfigMissingErrorHMPY.E102ImplicitInferenceErrorHMPY.E103SchemaVersionTooNewErrorHMPY.E104UnitAliasConflictHMPY.E105FrozenConfigErrorHMPY.E106BoundsErrorHMPY.E107CredentialsErrorHMPY.E108
DataErrorHMPY.E200DataContractViolationHMPY.E201DataCacheErrorHMPY.E202CacheCorruptionErrorHMPY.E203FrozenDataErrorHMPY.E210
DataSourceErrorHMPY.E204NetworkErrorHMPY.E205
MissingForcingErrorHMPY.E206DataRequestErrorHMPY.E207DataCapabilityErrorHMPY.E208DataProductErrorHMPY.E209JobInputNotFoundErrorHMPY.E211
MeshErrorHMPY.E300MeshGenerationErrorHMPY.E301IncompatibleMeshErrorHMPY.E302MeshRequestErrorHMPY.E303
TerrainErrorHMPY.E1000TerrainCapabilityErrorHMPY.E1001TerrainProductErrorHMPY.E1002EmptyCatchmentErrorHMPY.E1004
TerrainRequestErrorHMPY.E1003
JobUsageErrorHMPY.E1100CapabilityVersionMismatchErrorHMPY.E1101SolverErrorHMPY.E400SolverDivergedErrorHMPY.E401SolverTimeoutErrorHMPY.E402SolverBinaryErrorHMPY.E403SolverMassBalanceErrorHMPY.E404SolverInputErrorHMPY.E405SolverEnvironmentErrorHMPY.E406IncompatibleCapabilitiesErrorHMPY.E407ObservableNotAvailableErrorHMPY.E408
PipelineErrorHMPY.E500StepErrorHMPY.E501CheckpointErrorHMPY.E502LedgerErrorHMPY.E503ResumeErrorHMPY.E504ResumeIntegrityErrorHMPY.E509
ExtractErrorHMPY.E505ExportErrorHMPY.E506WorkspaceLockedErrorHMPY.E507JournalErrorHMPY.E508WorkflowDAGCycleErrorHMPY.E510FailedCasesErrorHMPY.E511
CalibrationErrorHMPY.E600ObjectiveErrorHMPY.E601OptimizerErrorHMPY.E602UncertaintyNotAvailableErrorHMPY.E603
DisplayErrorHMPY.E700FigureNotFoundErrorHMPY.E701BackendErrorHMPY.E702
StorageErrorHMPY.E800CatalogErrorHMPY.E801ReadOnlyErrorHMPY.E803WriteConflictErrorHMPY.E804CrossProjectsErrorHMPY.E805BackupFailedErrorHMPY.E806MigrationFailedErrorHMPY.E807CatalogUnreadableErrorHMPY.E808ImportConflictErrorHMPY.E809
ZarrStoreErrorHMPY.E802SchemaVersionMismatchErrorHMPY.E824
ResultsErrorHMPY.E900UnknownFieldErrorHMPY.E901
Codes#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E000 | HydroModPyError | 1 | Base class for all HydroModPy exceptions. | core | ||
HMPY.E001 | CommandUsageError | HydroModPyError | 2 | The command line asks for something the command cannot do as written. | project, cli, results | hmp.show(), hmp.status() |
HMPY.E002 | NothingThereError | HydroModPyError | 10 | What the command names is not there: a file, a run, a project, an index. | results, solver, project, workflow | hmp.stop() |
HMPY.E003 | OldNameError | HydroModPyError | 1 | A public name left before the first stable version, and it has no alias. | __init__, core | |
HMPY.E100 | ConfigError | HydroModPyError | 14 | Configuration loading, validation, or resolution failure. | project, workflow, core, calibration | hmp.calibrate(), hmp.replay(), hmp.run() |
HMPY.E101 | ConfigValidationError | ConfigError | 14 | The configuration document failed validation. | calibration, config, schema, core | |
HMPY.E102 | ConfigMissingError | ConfigError | 14 | A required configuration section or key is missing. | project, model, results, data | |
HMPY.E103 | ImplicitInferenceError | ConfigError | 14 | Data inference triggered a type not whitelisted in strict mode. | - | |
HMPY.E104 | SchemaVersionTooNewError | ConfigError | 14 | TOML schema version is newer than the installed HydroModPy. | - | |
HMPY.E105 | UnitAliasConflict | ConfigError | 14 | Duplicate / conflicting unit alias registration. | - | |
HMPY.E106 | FrozenConfigError | ConfigError | 14 | A frozen copy of a configuration was asked to change. | core | |
HMPY.E107 | BoundsError | ConfigError | 14 | A call stepped outside the hosts or roots its Bounds allow. | core | |
HMPY.E108 | CredentialsError | ConfigError | 14 | A credentials file is read and refuses: absent, misplaced, or carrying a bad block. | project | |
HMPY.E200 | DataError | HydroModPyError | 16 | Input data loading, validation, or provenance failure. | - | |
HMPY.E201 | DataContractViolation | DataError | 16 | A dataset does not satisfy its declared contract. | model, data, catchment, results | |
HMPY.E202 | DataCacheError | DataError | 16 | Local cache corruption or inconsistency. | data, workflow | |
HMPY.E203 | CacheCorruptionError | DataCacheError | 16 | Cache hit with an invalid fingerprint or unreadable payload. | core, data, project | |
HMPY.E204 | DataSourceError | DataError | 16 | Remote data source (HTTP/FTP) refused or returned invalid data. | data, core | |
HMPY.E205 | NetworkError | DataSourceError | 16 | HTTP 5xx, 429, or timeout while fetching a remote dataset. | core, project, data | |
HMPY.E206 | MissingForcingError | DataError | 16 | Required climatic / hydrometric forcing is absent for the period. | data, model | |
HMPY.E207 | DataRequestError | DataError | 16 | A fetch request is malformed, before any source is asked to serve it. | data, core, project | |
HMPY.E208 | DataCapabilityError | DataError | 16 | The selected data source does not serve the requested option. | data | |
HMPY.E209 | DataProductError | DataError | 16 | What a source returned does not satisfy what it declared. | data | |
HMPY.E210 | FrozenDataError | DataCacheError | 16 | A frozen run asked the cache for something the lockfile does not pin. | data, workflow | |
HMPY.E211 | JobInputNotFoundError | DataError | 10 | A file the job request names is not on disk. | data, catchment | |
HMPY.E300 | MeshError | HydroModPyError | 1 | Mesh generation or consistency failure. | workflow, solver, results, mesh | |
HMPY.E301 | MeshGenerationError | MeshError | 1 | Mesh generator (gmsh / FloPy helper) failed to produce a valid mesh. | mesh | |
HMPY.E302 | IncompatibleMeshError | MeshError | 1 | Two meshes expected to be congruent are not. | solver, results | |
HMPY.E303 | MeshRequestError | MeshError | 1 | A mesh request or an engine name is malformed, before any engine builds it. | mesh | |
HMPY.E400 | SolverError | HydroModPyError | 15 | Solver execution failure. | solver | hmp.run() |
HMPY.E401 | SolverDivergedError | SolverError | 15 | Solver reported non-convergence. | solver | |
HMPY.E402 | SolverTimeoutError | SolverError | 15 | Solver exceeded the configured wall-clock budget. | - | |
HMPY.E403 | SolverBinaryError | SolverError | 15 | Solver binary missing, unreadable, or crashed before producing output. | solver | |
HMPY.E404 | SolverMassBalanceError | SolverError | 15 | Mass balance residual exceeds the acceptance threshold. | - | |
HMPY.E405 | SolverInputError | SolverError | 15 | Invalid or inconsistent package data passed to the solver. | solver | |
HMPY.E406 | SolverEnvironmentError | SolverError | 15 | Solver runtime environment (PATH, licences) is misconfigured. | solver | |
HMPY.E407 | IncompatibleCapabilitiesError | SolverError | 15 | Requested capability is not implemented by the selected solver. | solver | |
HMPY.E408 | ObservableNotAvailableError | SolverError | 15 | Solver adapter cannot produce the requested observable for this run. | solver, project | |
HMPY.E500 | PipelineError | HydroModPyError | 1 | Pipeline orchestration failure. | workflow, cli, project, solver | hmp.run() |
HMPY.E501 | StepError | PipelineError | A pipeline step raised an unrecoverable error. | workflow | ||
HMPY.E502 | CheckpointError | PipelineError | 1 | Checkpoint read/write failure. | - | |
HMPY.E503 | LedgerError | PipelineError | 1 | Pipeline ledger (run history) corruption or write conflict. | - | |
HMPY.E504 | ResumeError | PipelineError | 1 | Pipeline cannot resume (incompatible checkpoint / config drift). | project, workflow, results | |
HMPY.E505 | ExtractError | PipelineError | 1 | Result extraction failed after a successful solver run. | solver, results, workflow | |
HMPY.E506 | ExportError | PipelineError | 1 | Exporter (NetCDF / CSV / VTU / GeoTIFF) failed to serialize results. | results, project, workflow | hmp.export(), hmp.publish() |
HMPY.E507 | WorkspaceLockedError | PipelineError | 1 | A concurrent process holds the workspace lock. | - | |
HMPY.E508 | JournalError | PipelineError | 1 | Workflow journal write/read inconsistency. | workflow | |
HMPY.E509 | ResumeIntegrityError | ResumeError | 1 | A completed-step artifact failed integrity verification on resume. | workflow | |
HMPY.E510 | WorkflowDAGCycleError | PipelineError | 1 | The workflow DAG declaration contains a dependency cycle. | workflow | |
HMPY.E511 | FailedCasesError | PipelineError | 23 | One or more cases of a launch failed; every case wrote its outcome. | - | |
HMPY.E600 | CalibrationError | HydroModPyError | 21 | Calibration loop failure. | calibration, project, cli | hmp.calibrate() |
HMPY.E601 | ObjectiveError | CalibrationError | 21 | Objective function evaluation failure. | calibration | |
HMPY.E602 | OptimizerError | CalibrationError | 21 | Optimizer backend (CMA, Optuna, ...) raised an unrecoverable error. | calibration | |
HMPY.E603 | UncertaintyNotAvailableError | CalibrationError | 21 | The search ran, and what it produced cannot carry the width asked for. | calibration | |
HMPY.E700 | DisplayError | HydroModPyError | 1 | Figure rendering failure. | display, project, workflow | |
HMPY.E701 | FigureNotFoundError | DisplayError | 1 | Requested figure name is not registered. | - | |
HMPY.E702 | BackendError | DisplayError | 1 | Matplotlib / PyVista backend failure. | - | |
HMPY.E800 | StorageError | HydroModPyError | 1 | Catalog or Zarr storage failure. | - | |
HMPY.E801 | CatalogError | StorageError | 1 | DuckDB catalog failure. | - | |
HMPY.E802 | ZarrStoreError | StorageError | 1 | Zarr store read/write failure. | - | |
HMPY.E803 | ReadOnlyError | CatalogError | 13 | A write was attempted against a read-only catalog. | results | |
HMPY.E804 | WriteConflictError | CatalogError | 12 | A concurrent writer holds the catalog and a write cannot proceed. | results, calibration, core, project | hmp.trash() |
HMPY.E805 | CrossProjectsError | CatalogError | 17 | An operation crossed project boundaries that must stay isolated. | - | |
HMPY.E806 | BackupFailedError | CatalogError | 18 | The pre-migration catalog backup could not be written. | - | |
HMPY.E807 | MigrationFailedError | CatalogError | 19 | A catalog schema migration failed to apply. | - | |
HMPY.E808 | CatalogUnreadableError | CatalogError | 22 | The catalog index file exists but DuckDB could not open it. | core, results | |
HMPY.E809 | ImportConflictError | CatalogError | 12 | An imported run or project is already in the catalog. | project, results | |
HMPY.E824 | SchemaVersionMismatchError | StorageError | 11 | A stored document carries no version, or one this version does not read. | schema, core, results | |
HMPY.E900 | ResultsError | HydroModPyError | 1 | Results / postprocessing failure. | project | |
HMPY.E901 | UnknownFieldError | ResultsError | 1 | Requested field name is not registered in the canonical field registry. | results | |
HMPY.E1000 | TerrainError | HydroModPyError | 15 | Terrain engine failure. | catchment | |
HMPY.E1001 | TerrainCapabilityError | TerrainError | 15 | The selected terrain engine does not implement the requested option. | - | |
HMPY.E1002 | TerrainProductError | TerrainError | 15 | A terrain product does not satisfy what the member it is passed to needs. | catchment | |
HMPY.E1003 | TerrainRequestError | TerrainError | 15 | The request itself is malformed, before any engine is asked to serve it. | - | |
HMPY.E1004 | EmptyCatchmentError | TerrainProductError | 15 | An outlet delineated nothing at all. | catchment | |
HMPY.E1100 | JobUsageError | HydroModPyError | 2 | The job directory is not usable as the caller gave it. | schema, project | |
HMPY.E1101 | CapabilityVersionMismatchError | HydroModPyError | 11 | The request targets a different major version of the capability. | schema |
Defined beside the code that raises them#
These classes are defined beside the code that raises them, one table per module.
hydromodpy.calibration.metrics.gauge_snap#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E600 (inherited) | GaugeSnapError | CalibrationError | 21 | The snap radius reaches no cell but the one the gauge already sits in. | calibration |
hydromodpy.calibration.observations.network_source#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | UnresolvedObservedNetwork | ConfigError | 14 | A network output names a source this project cannot produce a network from. | calibration |
hydromodpy.calibration.parameter_resolution#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | UnresolvedParameterName | ConfigError | 14 | A parameter names a quantity this project does not carry, or two of them. | calibration |
hydromodpy.calibration.runners.failure_watch#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E600 (inherited) | EveryTrialFailedError | CalibrationError | 21 | Every trial in a row failed, so the search has nothing to search. | calibration |
hydromodpy.config.loading#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | ConfigFileError | ConfigError | 14 | A configuration file, or a file of its base_config chain, cannot be read. | config |
hydromodpy.core.payload.install#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E809 (inherited) | PayloadConflictError | ImportConflictError | 12 | A file or a station row of a package would replace another one; nothing was written. | core |
hydromodpy.core.runtime.interrupts#
hydromodpy.core.site.config#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | GaugeConflictError | ConfigError | 14 | A station key names another station than [site] gauge. | core, data |
hydromodpy.core.time.selection#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E900 (inherited) | TimeSelectionError | ResultsError | 1 | A time selector names no period of the run. | core |
hydromodpy.core.toml_io.merge#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | BaseConfigConflict | ConfigError | 14 | Two files of a base_config graph that do not inherit each other disagree on a key. | - |
hydromodpy.core.toml_io.paths#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | BareInputNameError | ConfigError | 14 | A config path is a bare file name and no file of that name is at the root. | config, data | |
HMPY.E100 (inherited) | UnknownPathError | ConfigError | 14 | A dotted key path names a key the schema or the document does not have. | core |
hydromodpy.core.units.physical_bounds#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E101 (inherited) | PhysicalBoundsError | ConfigValidationError | 14 | A value lies outside the physical range of its parameter. | core |
hydromodpy.core.workspace.exceptions#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | WorkspaceError | ConfigError | 14 | Raised when no HydroModPy workspace can be located for a given TOML. | - |
hydromodpy.data.ingest.raster#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E200 (inherited) | RasterConversionError | DataError | 16 | Raised when a raster file cannot be converted to COG. | data |
hydromodpy.data.ingest.tables#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E201 (inherited) | TimeSeriesValidationError | DataContractViolation | 16 | Raised when a CSV file fails validation. | data |
hydromodpy.data.ingest.vector#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E200 (inherited) | VectorConversionError | DataError | 16 | Raised when a vector file cannot be converted. | data |
hydromodpy.data.sites.catalog#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E809 (inherited) | SiteConflictError | ImportConflictError | 12 | A site to add takes a declared name, or an outlet too close to another site. | data |
hydromodpy.data.sites.single_site#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | SiteMismatchError | ConfigError | 14 | The site named by the project is another catchment in the catalog. | data |
hydromodpy.data.variables.dem.apis.geoplateforme_download#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E204 (inherited) | GeoPlateformeDownloadError | DataSourceError | 16 | Raised when Geoplateforme discovery or download fails. | data |
hydromodpy.display.subject#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E700 (inherited) | FigureNotApplicable | DisplayError | 1 | A figure, or one of its panels, cannot be drawn from this subject. | display |
hydromodpy.model.forcing.sources#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E201 (inherited) | ForcingGridError | DataContractViolation | 16 | A gridded forcing with no pixel, or with no X and Y axis to read it by. | model |
hydromodpy.project.compare#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E900 (inherited) | ComparisonCaseError | ResultsError | 1 | The runs cannot be compared, and the message says why. | project | hmp.compare() |
HMPY.E900 (inherited) | ComparisonReferenceError | ResultsError | 1 | A reference names no sealed run. | project | hmp.compare() |
hydromodpy.project.data_cache#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | FrozenVerificationError | ConfigError | 14 | Raised when --frozen finds a lockfile drift before running anything. | project |
hydromodpy.project.exchange.replay#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | ReplayInputError | ConfigError | 14 | An input of a published copy is missing from inputs/ or has another digest. | project |
hydromodpy.project.launch.lease#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E804 (inherited) | LeaseHeldError | WriteConflictError | 12 | Another launcher holds the project and its death is not proven. | project |
hydromodpy.project.launch.plan#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | BudgetError | ConfigError | 14 | The plan asks for more than the machine, or the measurements, allow. | project | |
HMPY.E100 (inherited) | CellError | ConfigError | 14 | A cell cannot be read by the type of the key it is bound to. | project | |
HMPY.E100 (inherited) | PlanError | ConfigError | 14 | The plan cannot be written: its issues, one line each. | project | |
HMPY.E100 (inherited) | RunningCaseError | ConfigError | 14 | A case of the current plan is running; a new plan would change its ground. | project | |
HMPY.E100 (inherited) | SitesProjectError | ConfigError | 14 | The file is not a [sites] project, or a table or a bind line is unusable. | project |
hydromodpy.project.launch.summary_tables#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | SummaryError | ConfigError | 14 | [sites.summary] or [[sites.export]] asks for something the collect cannot give. | project |
hydromodpy.results.catalog.constants#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E900 (inherited) | UnrankedMetricError | ResultsError | 1 | Raised when a metric has no declared direction, so best is undefined. | results |
hydromodpy.results.catalog.discovery#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E002 | SimulationNotFoundError | ReferenceResolutionError | 10 | Raised when a reference does not match any run or session. | results, project | hmp.status(), hmp.trash() |
HMPY.E801 (inherited) | AmbiguousReferenceError | ReferenceResolutionError | 20 | Raised when a reference matches more than one run or session. | results | |
HMPY.E801 (inherited) | ReferenceResolutionError | CatalogError | 1 | Base class for catalog reference resolution failures. | - |
hydromodpy.results.catalog.registration#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E804 (inherited) | NameTakenError | WriteConflictError | 12 | A name is held by a live directory, a trashed one or a tombstone. | results | |
HMPY.E804 (inherited) | VersionPairingError | WriteConflictError | 12 | The run directory a session is paired with is already taken. | results |
hydromodpy.results.errors#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E801 (inherited) | SeveralCasesError | CatalogError | 1 | A session of several cases was asked for the one run or the one case it does not have. | calibration, results | |
HMPY.E821 | FieldNotFoundError | CatalogError | 1 | A field name is registered but absent from the simulation store. | results | |
HMPY.E822 | RunNotFoundError | CatalogError | 1 | A sim_id does not exist in the catalog. | results | |
HMPY.E823 | ProjectNotFoundError | CatalogError | 10 | A project root or its project.toml is missing. | - | |
HMPY.E825 | RunNotSealedError | CatalogError | 10 | A run has no manifest.json: it never completed, so it has no seal to read. | results | hmp.open() |
hydromodpy.results.export.publish#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E506 (inherited) | MissingInputError | ExportError | 1 | An input of a run is not on disk any more, so a copy cannot carry its bytes. | project, results |
hydromodpy.results.plan_store#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E000 (inherited) | PlanConflictError | HydroModPyError | 1 | A plan with this hash exists and holds other content. | results |
hydromodpy.results.record.replay_class#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E900 (inherited) | ReplayDeviationError | ResultsError | 1 | A replay asked to be strict did not reproduce the sealed values. | results |
hydromodpy.results.run.point#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E900 (inherited) | PointOutsideMeshError | ResultsError | 1 | The requested coordinates fall outside the simulation mesh. | results |
hydromodpy.results.run.sealed#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E200 (inherited) | MixedWindowsError | DataError | 16 | Scores computed under different rules were about to be ranked together. | results |
hydromodpy.results.run.sealed_facts#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E200 (inherited) | UnreadableManifestError | DataError | 16 | A sealed run or session whose seal does not read under this version. | project, results |
hydromodpy.results.storage.attempt#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E804 (inherited) | AttemptClaimedError | WriteConflictError | 12 | Another worker claimed the same attempt of this case first. | results | |
HMPY.E804 (inherited) | CaseAliveError | WriteConflictError | 12 | The case is running elsewhere and its death is not proven. | results | |
HMPY.E804 (inherited) | DirectoryWithoutOutcomeError | WriteConflictError | 12 | The latest directory of the case carries no outcome and no seal. | results |
hydromodpy.results.trash#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E804 (inherited) | DirectoryInUseError | WriteConflictError | 12 | The directory belongs to an attempt that is running, or may still be. | results | |
HMPY.E804 (inherited) | ProtectedDirectoryError | WriteConflictError | 12 | The directory carries the protected tag and the caller did not force. | cli, results |
hydromodpy.workflow.dispatch#
| Code | Class | Parent | Exit code | Meaning | Raised in | Documented on |
|---|---|---|---|---|---|---|
HMPY.E100 (inherited) | WorkflowError | ConfigError | 14 | Base class for workflow-dispatch errors. | - | |
HMPY.E100 (inherited) | WorkflowMismatchError | WorkflowError | 14 | The requested workflow and the one the file declares disagree. | workflow | |
HMPY.E100 (inherited) | WorkflowUnknownError | WorkflowError | 14 | The file declares a workflow mode that does not exist. | workflow |