| Mech-Eye API 2.3.0
    API reference documentation for Mech-Eye Industrial 3D Camera | 
Describes the types of errors. More...
#include <ErrorStatus.h>
| Public Types | |
| enum | ErrorCode { MMIND_STATUS_SUCCESS = 0 , MMIND_STATUS_INVALID_DEVICE , MMIND_STATUS_DEVICE_OFFLINE = -2 , MMIND_STATUS_NO_SUPPORT_ERROR , MMIND_STATUS_OUT_OF_RANGE_ERROR = -4 , MMIND_STATUS_PARAMETER_ERROR , MMIND_STATUS_NO_DATA_ERROR , MMIND_STATUS_INVALID_INPUT_ERROR , MMIND_STATUS_FILE_IO_ERROR , MMIND_STATUS_TIMEOUT_ERROR , MMIND_HANDEYE_CALIBRATION_EXECUTION_ERROR , MMIND_STATUS_REPLY_WITH_ERROR = -11 , MMIND_STATUS_ACQUISITION_TRIGGER_WAIT = -12 , MMIND_STATUS_DEVICE_BUSY = -13 , MMIND_STATUS_INVALID_CALLBACKFUNC = -14 , MMIND_STATUS_RESPONSE_PARSE_ERROR = -15 } | 
| Describes the error codes.  More... | |
| Public Member Functions | |
| ErrorStatus ()=default | |
| Default constructor. | |
| ErrorStatus (ErrorCode code, const std::string &message) | |
| Constructor. | |
| bool | isOK () const | 
| Returns true if the operation succeeds. | |
| Public Attributes | |
| ErrorCode | errorCode {MMIND_STATUS_SUCCESS} | 
| std::string | errorDescription | 
Describes the types of errors.
Definition at line 11 of file ErrorStatus.h.
Describes the error codes.
| Enumerator | |
|---|---|
| MMIND_STATUS_SUCCESS | Success. | 
| MMIND_STATUS_INVALID_DEVICE | A Camera or Profiler object not connected to an actual device is used, or an IP address of a non Mech-Eye device is input to the connect() method. | 
| MMIND_STATUS_DEVICE_OFFLINE | Device is offline. Network issue may be present. | 
| MMIND_STATUS_NO_SUPPORT_ERROR | The operation is not supported. Possible reasons include: 1. Firmware version is inconsistent with Mech-Eye API version; 2. Device model does not provide the corresponding function. | 
| MMIND_STATUS_OUT_OF_RANGE_ERROR | The input device parameter value exceeds the settable value range of the device parameter. | 
| MMIND_STATUS_PARAMETER_ERROR | The input device parameter name does not exist, or the data type of the device parameter does not match the method. | 
| MMIND_STATUS_NO_DATA_ERROR | The image data is empty. Some error may have occurred on the device. | 
| MMIND_STATUS_INVALID_INPUT_ERROR | An invalid input not covered by other error types is provided, such as a nonexisting name of device user set. | 
| MMIND_STATUS_FILE_IO_ERROR | An error occurred when an operation related to reading or writing a file was executed, such as invalid filename and incorrect file type. | 
| MMIND_STATUS_TIMEOUT_ERROR | The set timeout period exceeded when performing operations such as connecting to the device and retrieving data. | 
| MMIND_HANDEYE_CALIBRATION_EXECUTION_ERROR | An error occurred while executing the hand-eye calibration. | 
| MMIND_STATUS_REPLY_WITH_ERROR | There are errors in the reply from device. | 
| MMIND_STATUS_ACQUISITION_TRIGGER_WAIT | Data acquisition has not been started. | 
| MMIND_STATUS_DEVICE_BUSY | The callback function registration is executed again before data acquisition is stopped. | 
| MMIND_STATUS_INVALID_CALLBACKFUNC | The registered callback function is invalid. | 
| MMIND_STATUS_RESPONSE_PARSE_ERROR | It is error to parse the response from device. | 
Definition at line 16 of file ErrorStatus.h.
| 
 | inline | 
Constructor.
Definition at line 62 of file ErrorStatus.h.
| 
 | inline | 
Returns true if the operation succeeds.
Definition at line 70 of file ErrorStatus.h.
| ErrorCode mmind::eye::ErrorStatus::errorCode {MMIND_STATUS_SUCCESS} | 
Error code.
Definition at line 75 of file ErrorStatus.h.
| std::string mmind::eye::ErrorStatus::errorDescription | 
Detailed error message.
Definition at line 80 of file ErrorStatus.h.