diff --git a/lerobot/common/errors.py b/lerobot/common/errors.py index aba958a1..4f506b61 100644 --- a/lerobot/common/errors.py +++ b/lerobot/common/errors.py @@ -1,9 +1,3 @@ -class ConnectionError(Exception): - """Base exception class for connection errors.""" - - pass - - class DeviceNotConnectedError(ConnectionError): """Exception raised when the device is not connected.""" diff --git a/lerobot/common/utils/robot_utils.py b/lerobot/common/utils/robot_utils.py index 19bb637e..593773b5 100644 --- a/lerobot/common/utils/robot_utils.py +++ b/lerobot/common/utils/robot_utils.py @@ -28,24 +28,3 @@ def safe_disconnect(func): raise e return wrapper - - -class RobotDeviceNotConnectedError(Exception): - """Exception raised when the robot device is not connected.""" - - def __init__( - self, message="This robot device is not connected. Try calling `robot_device.connect()` first." - ): - self.message = message - super().__init__(self.message) - - -class RobotDeviceAlreadyConnectedError(Exception): - """Exception raised when the robot device is already connected.""" - - def __init__( - self, - message="This robot device is already connected. Try not calling `robot_device.connect()` twice.", - ): - self.message = message - super().__init__(self.message)