From 1147eca61067da95c1b25f45f580055f5fc7862d Mon Sep 17 00:00:00 2001 From: "Mariana R. Santos" Date: Wed, 10 Jul 2024 14:08:26 +0200 Subject: [PATCH] Add robot execption when amending mission --- .../models/exceptions/robot_exceptions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/robot_interface/models/exceptions/robot_exceptions.py b/src/robot_interface/models/exceptions/robot_exceptions.py index c07d8d0d..1fa4c3af 100644 --- a/src/robot_interface/models/exceptions/robot_exceptions.py +++ b/src/robot_interface/models/exceptions/robot_exceptions.py @@ -24,6 +24,7 @@ class ErrorReason(str, Enum): RobotMissionMissingStartPoseException: str = ( "robot_mission_missing_start_pose_exception" ) + RobotAmendMissionException: str = "robot_amend_mission_exception" @dataclass @@ -258,3 +259,13 @@ def __init__(self, error_description: str) -> None: ) pass + + +class RobotAmendMissionException(RobotException): + def __init__(self, error_description: str) -> None: + super().__init__( + error_reason=ErrorReason.RobotAmendMissionException, + error_description=error_description, + ) + + pass