libcpp4ec
C++ for EtherCat Library
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | List of all members
EcError Class Reference

Class EcError. More...

#include <EcError.h>

Inheritance diagram for EcError:
EcErrorSGDV

Public Types

enum  {
  ECAT_ERROR, FAIL_EC_INIT, FAIL_EC_CONFIG_INIT, FAIL_SWITCHING_STATE_INIT,
  FAIL_SWITCHING_STATE_PRE_OP, FAIL_SWITCHING_STATE_SAFE_OP, FAIL_SWITCHING_STATE_OPERATIONAL, FAIL_CREATING_DRIVER,
  FAIL_OUTPUT_LABEL, FAIL_OPENING_OUTPUT, FAIL_WRITING, FAIL_INPUT_LABEL,
  FAIL_OPENING_INPUT, FAIL_READING
}
 

Public Member Functions

 EcError (int errorcode) throw ()
 Constructor.
 
virtual const char * what () const throw ()
 Get string identifying exception.
 
virtual int getErrorCode () const throw ()
 Get the code of the error.
 

Detailed Description

Class EcError.

The class EcError creates an exeption when an error occurs on the EcMaster.

Examples:
demo1.cpp, demo2.cpp, demo3.cpp, and demo4.cpp.

The documentation for this class was generated from the following files: