We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d3e16 commit 3b3f33dCopy full SHA for 3b3f33d
stagpy/error.py
@@ -7,6 +7,7 @@
7
from typing import Sequence
8
from os import PathLike
9
from .stagyydata import StagyyData
10
+ from ._step import Step
11
12
13
class StagpyError(Exception):
@@ -34,6 +35,19 @@ def __init__(self, sdat: StagyyData):
34
35
super().__init__(f'no snapshot found for {sdat}')
36
37
38
+class NoGeomError(StagpyError):
39
+ """Raised when no geometry info can be found.
40
+
41
+ Attributes:
42
+ step: the :class:`~stagpy._step.Step` instance for which no geometry
43
+ was found.
44
+ """
45
46
+ def __init__(self, step: Step):
47
+ self.step = step
48
+ super().__init__(f"no geometry info found for {step!r}")
49
50
51
class NoParFileError(StagpyError):
52
"""Raised when no par file can be found.
53
0 commit comments