Flexiv RDK APIs  0.10
Exception.hpp
Go to the documentation of this file.
1 
6 #ifndef FLEXIVRDK_EXCEPTION_HPP_
7 #define FLEXIVRDK_EXCEPTION_HPP_
8 
9 #include <stdexcept>
10 
11 namespace flexiv {
12 
17 class Exception : public std::runtime_error
18 {
19  // Using parent constructor to take in error message
20  using std::runtime_error::runtime_error;
21 };
22 
27 class InitException : public Exception
28 {
29  // Using parent constructor to take in error message
30  using Exception::Exception;
31 };
32 
38 class CommException : public Exception
39 {
40  // Using parent constructor to take in error message
41  using Exception::Exception;
42 };
43 
48 class ServerException : public Exception
49 {
50  // Using parent constructor to take in error message
51  using Exception::Exception;
52 };
53 
58 class ClientException : public Exception
59 {
60  // Using parent constructor to take in error message
61  using Exception::Exception;
62 };
63 
68 class InputException : public Exception
69 {
70  // Using parent constructor to take in error message
71  using Exception::Exception;
72 };
73 
80 {
81  // Using parent constructor to take in error message
82  using Exception::Exception;
83 };
84 
89 class LogicException : public Exception
90 {
91  // Using parent constructor to take in error message
92  using Exception::Exception;
93 };
94 
101 {
102  // Using parent constructor to take in error message
103  using Exception::Exception;
104 };
105 
106 } /* namespace flexiv */
107 
108 #endif /* FLEXIVRDK_EXCEPTION_HPP_ */
Thrown if an error is triggered by the client computer.
Definition: Exception.hpp:59
Thrown if the communication/connection with the robot server has an error.
Definition: Exception.hpp:39
Thrown if version of the RDK client is not compatible with the robot server.
Definition: Exception.hpp:101
Base class for all custom runtime exception classes.
Definition: Exception.hpp:18
Thrown if an error occurred when executing a requested operation or computation.
Definition: Exception.hpp:80
Thrown if the initialization of a functional module has failed.
Definition: Exception.hpp:28
Thrown if the user input is not valid.
Definition: Exception.hpp:69
Thrown if the logic of the program is incorrect.
Definition: Exception.hpp:90
Thrown if the robot server is not operational or has fault.
Definition: Exception.hpp:49