Mech-Eye API 2.4.0
API reference documentation for Mech-Eye Industrial 3D Camera
Loading...
Searching...
No Matches
ErrorStatus.h
1#pragma once
2#include <string>
3#include <iostream>
4
5namespace mmind {
6
7namespace eye {
96
100inline void showError(const mmind::eye::ErrorStatus& status)
101{
102 if (status.isOK())
103 return;
104 std::cout << "Error Code : " << status.errorCode
105 << ", Error Description: " << status.errorDescription << std::endl;
106}
107
108} // namespace eye
109
110} // namespace mmind
Represents a 2D container of data.
Definition Array2D.h:17
Describes the types of errors.
Definition ErrorStatus.h:12
ErrorCode
Describes the error codes.
Definition ErrorStatus.h:16
@ MMIND_STATUS_SUCCESS
Success.
Definition ErrorStatus.h:17
@ MMIND_STATUS_NO_DATA_ERROR
The image data is empty. Some error may have occurred on the device.
Definition ErrorStatus.h:31
@ MMIND_STATUS_DEVICE_OFFLINE
Device is offline. Network issue may be present.
Definition ErrorStatus.h:21
@ MMIND_STATUS_INVALID_CALLBACKFUNC
The registered callback function is invalid.
Definition ErrorStatus.h:50
@ MMIND_STATUS_REPLY_WITH_ERROR
The reply from the device contains errors.
Definition ErrorStatus.h:44
@ MMIND_HANDEYE_CALIBRATION_EXECUTION_ERROR
An error occurred while executing the hand-eye calibration.
Definition ErrorStatus.h:42
@ MMIND_STATUS_PROFILE_POST_PROCESS_ERROR
An error occurred while profile post process.
Definition ErrorStatus.h:54
@ MMIND_STATUS_ACQUISITION_TRIGGER_WAIT
Data acquisition has not been started.
Definition ErrorStatus.h:46
@ MMIND_STATUS_RESPONSE_PARSE_ERROR
It is error to parse the response from device.
Definition ErrorStatus.h:52
ErrorStatus()=default
Default constructor.
std::string errorDescription
Definition ErrorStatus.h:94
bool isOK() const
Returns true if the operation succeeded.
Definition ErrorStatus.h:84
ErrorStatus(ErrorCode code, const std::string &message)
Constructor.
Definition ErrorStatus.h:76