Skip to content

Exceptions

MCIsingError

Bases: Exception

Base exception for all mcising errors.


ConfigurationError

Bases: MCIsingError, ValueError

Raised when simulation configuration is invalid.

Also a ValueError: pre-1.0 config validation raised plain ValueError, and the Rust core still surfaces its boundary errors as ValueError — so except ValueError catches every invalid-configuration error from both layers, while except ConfigurationError selects the Python-side validation specifically.


SimulationError

Bases: MCIsingError

Raised when a simulation encounters an error during execution.