ev3_joint_settings_exception.h
1 /*
2  * This file (ev3_joint_settings_exception.h) is part of h4r_ev3_manager.
3  * Date: 17.11.2015
4  *
5  * Author: Christian Holl
6  * http://github.com/Hacks4ROS
7  *
8  * h4r_ev3_manager is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * h4r_ev3_manager is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with ev3_joint_setup. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef EV3_JOINT_SETTINGS_EXCEPTION_H_
24 #define EV3_JOINT_SETTINGS_EXCEPTION_H_
25 
26 #include <string>
27 #include <exception>
28 
29 
30 namespace ev3_control
31 {
32 
33 class Ev3JointInterfaceException: public std::exception
34 {
35 public:
36  Ev3JointInterfaceException(const std::string& msg)
37  : msg(msg) {}
38 
39  virtual ~Ev3JointInterfaceException() throw()
40  {}
41 
42  virtual const char* what() const throw()
43  {
44  return msg.c_str();
45  }
46 
47 private:
48  std::string msg;
49 };
50 
51 }
52 
53 #endif /* EV3_JOINT_SETTINGS_EXCEPTION_H_ */
Definition: ev3_joint_settings_exception.h:33