TPIK  1.0
Task Priority Inverse Kinematics
Loading...
Searching...
No Matches
TPIKExceptions.h
Go to the documentation of this file.
1#ifndef __TPIKEXCEPTIONS_H__
2#define __TPIKEXCEPTIONS_H__
3
4#include <iostream>
5
6namespace tpik {
7
8class ExceptionWithHow : public std::exception {
9public:
10 void SetHow(std::string how)
11 {
12 how_ = how;
13 }
14 const char* how() const noexcept
15 {
16 return how_.c_str();
17 }
18
19private:
20 std::string how_;
21};
22
24
25 virtual const char* what() const noexcept
26 {
27 return "Cannot update the task, either not initialzed or wrong task parameters (check how())";
28 }
29};
30
32
33 virtual const char* what() const noexcept
34 {
35 return "Cannot update the task, either not initialzed or wrong virtual frame parameters (check how())";
36 }
37};
38
40
41 virtual const char* what() const noexcept
42 {
43 return "[ActionManger] Hierarchy/Action exception (check how())";
44 }
45};
46}
47
48#endif
Definition TPIKExceptions.h:39
Definition TPIKExceptions.h:8
void SetHow(std::string how)
Definition TPIKExceptions.h:10
const char * how() const noexcept
Definition TPIKExceptions.h:14
Definition TPIKExceptions.h:23
Definition Action.h:9