Skip to content

Commit bfbd7ef

Browse files
committed
Added a common base class for trajectory exceptions.
1 parent 6d4ba59 commit bfbd7ef

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/prpy/exceptions.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ class PrPyException(Exception):
44
"""
55

66

7-
class TrajectoryNotExecutable(PrPyException):
7+
class TrajectoryException(PrPyException):
8+
"""
9+
Trajectory failed to execute.
10+
"""
11+
12+
13+
class TrajectoryNotExecutable(TrajectoryException):
814
"""
915
Trajectory could not begin execution.
1016
@@ -17,13 +23,13 @@ class TrajectoryNotExecutable(PrPyException):
1723
"""
1824

1925

20-
class TrajectoryAborted(PrPyException):
26+
class TrajectoryAborted(TrajectoryException):
2127
"""
2228
Trajectory was aborted.
2329
"""
2430

2531

26-
class TrajectoryStalled(PrPyException):
32+
class TrajectoryStalled(TrajectoryException):
2733
"""
2834
Trajectory stalled.
2935
"""

0 commit comments

Comments
 (0)