libcpp4ec
C++ for EtherCat Library
 All Classes Functions Variables Typedefs Enumerations Enumerator
EcErrorSGDV.h
1 #ifndef ECERRORSGDV_H
2 #define ECERRORSGDV_H
3 
4 #include "EcError.h"
5 
11 class EcErrorSGDV: public EcError
12 {
13 public:
14  enum
15  {
16  ECAT_ERROR,
17  FAIL_EC_INIT,
18  FAIL_EC_CONFIG_INIT,
19  FAIL_SWITCHING_STATE_INIT,
20  FAIL_SWITCHING_STATE_PRE_OP,
21  FAIL_SWITCHING_STATE_SAFE_OP,
22  FAIL_SWITCHING_STATE_OPERATIONAL,
23  FAIL_CREATING_DRIVER,
24  FAIL_OUTPUT_LABEL,
25  FAIL_OPENING_OUTPUT,
26  FAIL_WRITING,
27  FAIL_INPUT_LABEL,
28  FAIL_OPENING_INPUT,
29  FAIL_READING,
30  XML_STRUCTURE_ERROR,
31  XML_NOT_FOUND_ERROR,
32  XML_TYPE_ERROR,
33  OUTPUT_OBJECTS_ERROR,
34  INPUT_OBJECTS_ERROR,
35  WRONG_ENTRY_ERROR,
36  FUNCTION_NOT_ALLOWED_ERROR,
37  };
38 
43  EcErrorSGDV (int errorcode, unsigned int nslave, std::string name);
44 
49  const char* what() const throw();
50 
51 
52 
53 private:
54  int slave_nr;
55  std::string slave_name;
56 };
57 
58 #endif
const char * what() const
Get string identifying exception.
Definition: EcErrorSGDV.cpp:11
Class EcError.
Definition: EcError.h:13
EcErrorSGDV(int errorcode, unsigned int nslave, std::string name)
Constructor.
Definition: EcErrorSGDV.cpp:6
Class EcErrorSGDV.
Definition: EcErrorSGDV.h:11