geopulse.exceptions

Custom exception hierarchy for GeoPulse.

All GeoPulse exceptions inherit from GeoPulseError so users can catch all of them with a single except clause.

Exceptions

ConfigurationError

Raised when a configuration file is invalid or missing.

ConvergenceError

Raised when an iterative solver fails to converge.

DataError

Raised when input data is malformed, missing, or has wrong units.

GeoPulseError

Base exception for all GeoPulse errors.

NotImplementedYetError(feature[, work_package])

Raised for features that are in the roadmap but not yet coded.

ShapeMismatchError

Raised when array shapes do not match the expected contract.

exception geopulse.exceptions.GeoPulseError[source]

Bases: Exception

Base exception for all GeoPulse errors.

exception geopulse.exceptions.ConfigurationError[source]

Bases: GeoPulseError

Raised when a configuration file is invalid or missing.

exception geopulse.exceptions.DataError[source]

Bases: GeoPulseError

Raised when input data is malformed, missing, or has wrong units.

exception geopulse.exceptions.ShapeMismatchError[source]

Bases: DataError

Raised when array shapes do not match the expected contract.

exception geopulse.exceptions.ConvergenceError[source]

Bases: GeoPulseError

Raised when an iterative solver fails to converge.

exception geopulse.exceptions.NotImplementedYetError(feature, work_package='TBD')[source]

Bases: GeoPulseError

Raised for features that are in the roadmap but not yet coded.

Includes the work-package reference so users know when to expect it.

Parameters:
  • feature (str) – Short human-readable feature name (e.g. "TensorImpedance.apply").

  • work_package (str) – Roadmap work-package identifier (e.g. "WP2"). Default: "TBD".

Return type:

None