Skip to content
Snippets Groups Projects
Commit 1428c642 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added an Unsupported Feature exception.

parent ada1ee49
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
const std::string dynamixel_motor_error_message="DynamixelMotor error - ";
const std::string dynamixel_motor_group_error_message="DynamixelMotorGroup error - ";
const std::string dynamixel_motor_unsupported_feature_error_message="DynamixelMotorUnsupportedFeature error - ";
const std::string dynamixel_motion_sequence_error_message="DynamixelMotionSeq error - ";
CDynamixelMotorException::CDynamixelMotorException(const std::string& where,const std::string &error_msg):CException(where,dynamixel_motor_error_message)
......@@ -21,6 +22,13 @@ CDynamixelMotorGroupException::CDynamixelMotorGroupException(const std::string&
this->error_msg+=error_msg;
}
CDynamixelMotorUnsupportedFeatureException::CDynamixelMotorUnsupportedFeatureException(const std::string& where,const std::string &error_msg):CException(where,dynamixel_motor_unsupported_feature_error_message)
{
std::stringstream text;
this->error_msg+=error_msg;
}
CDynamixelMotionSequenceException::CDynamixelMotionSequenceException(const std::string& where,const std::string &error_msg):CException(where,dynamixel_motion_sequence_error_message)
{
std::stringstream text;
......
......@@ -33,6 +33,19 @@ class CDynamixelMotorGroupException : public CException
CDynamixelMotorGroupException(const std::string& where,const std::string &error_msg);
};
/**
* \brief
*/
class CDynamixelMotorUnsupportedFeatureException : public CException
{
public:
/**
* \brief
*
*/
CDynamixelMotorUnsupportedFeatureException(const std::string& where,const std::string &error_msg);
};
/**
* \brief
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment