error
Exceptions raised by StagPy.
StagpyError
Bases: Exception
Base class for exceptions raised by StagPy.
Note
All exceptions derive from this class. To catch any error that might be raised by StagPy due to invalid requests/missing data, you only need to catch this exception.
NoSnapshotError
dataclass
NoGeomError
dataclass
NoTimeError
dataclass
NoRefstateError
dataclass
NoParFileError
dataclass
NotAvailableError
Bases: StagpyError
Raised when a feature is not available yet.
ParsingError
dataclass
InvalidTimestepError
dataclass
InvalidSnapshotError
dataclass
InvalidTimeFractionError
dataclass
InvalidNfieldsError
dataclass
InvalidZoomError
dataclass
MissingDataError
Bases: StagpyError
Raised when requested data is not present in output.