QuadroCopter  0.1.4
i2cSetupException.h
Go to the documentation of this file.
1 //
2 // Created by Michael Brookes on 10/02/2017.
3 //
4 
5 #ifndef QUADRO_I2CSETUPEXCEPTION_H
6 #define QUADRO_I2CSETUPEXCEPTION_H
7 
8 #include "../../Exceptions/setupException.h"
9 
10 using namespace quadro::exceptions;
11 
12 namespace quadro {
13 
14  namespace i2c {
15 
16  using namespace std;
17 
18  const string STARTUP_FAILURE = "Unable to start the I2C device.";
19  const string THREAD_UNKNOWN = "Unable to create thread : Unknown Error Occurred.";
20  const string THREAD_FATAL = "Unable to create thread : Fatal Error Occurred.";
21  const string THREAD_PERMISSIONS = "Unable to create thread : Operation not permitted.";
22  const string THREAD_INVALID_ARG = "Unable to create thread : Invalid Argument.";
23 
25  public:
30  i2cSetupException( string _errMsg ) { }
31  };
32 
33  }
34 
35 }
36 
37 #endif //QUADRO_I2CSETUPEXCEPTION_H
const string THREAD_FATAL
Definition: i2cSetupException.h:20
Definition: fatalException.h:27
Definition: setupException.h:34
Definition: i2cSetupException.h:24
i2cSetupException(string _errMsg)
Definition: i2cSetupException.h:30
const string THREAD_PERMISSIONS
Definition: i2cSetupException.h:21
Definition: aeronautics.h:23
const string THREAD_UNKNOWN
Definition: i2cSetupException.h:19
const string THREAD_INVALID_ARG
Definition: i2cSetupException.h:22
const string STARTUP_FAILURE
Definition: i2cSetupException.h:18