Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dynamixel_motor_cont
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
drivers
dynamixel_motor_cont
Commits
1428c642
Commit
1428c642
authored
5 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added an Unsupported Feature exception.
parent
ada1ee49
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dynamixel_motor_exceptions.cpp
+8
-0
8 additions, 0 deletions
src/dynamixel_motor_exceptions.cpp
src/dynamixel_motor_exceptions.h
+13
-0
13 additions, 0 deletions
src/dynamixel_motor_exceptions.h
with
21 additions
and
0 deletions
src/dynamixel_motor_exceptions.cpp
+
8
−
0
View file @
1428c642
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/dynamixel_motor_exceptions.h
+
13
−
0
View file @
1428c642
...
...
@@ -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
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment