Skip to content

Commit

Permalink
Add new RobotMissionMissingStartPoseException
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Jun 19, 2024
1 parent fd80cec commit 33dfc6a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/robot_interface/models/exceptions/robot_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class ErrorReason(str, Enum):
RobotUnknownErrorException: str = "robot_unknown_error_exception"
RobotDisconnectedException: str = "robot_disconnected_exception"
RobotMissionNotSupportedException: str = "robot_mission_not_supported_exception"
RobotMissionMissingStartPoseException: str = (
"robot_mission_missing_start_pose_exception"
)


@dataclass
Expand Down Expand Up @@ -244,3 +247,14 @@ def __init__(self, error_description: str) -> None:
)

pass


# An exception which should be thrown by the robot package if the mission is missing start pose and it needed it
class RobotMissionMissingStartPoseException(RobotException):
def __init__(self, error_description: str) -> None:
super().__init__(
error_reason=ErrorReason.RobotMissionMissingStartPoseException,
error_description=error_description,
)

pass

0 comments on commit 33dfc6a

Please sign in to comment.