Mech-Eye API 2.3.3
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 {
83
87inline void showError(const mmind::eye::ErrorStatus& status)
88{
89 if (status.isOK())
90 return;
91 std::cout << "Error Code : " << status.errorCode
92 << ", Error Description: " << status.errorDescription << std::endl;
93}
94
95} // namespace eye
96
97} // 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_ACQUISITION_TRIGGER_WAIT
Data acquisition has not been started.
Definition ErrorStatus.h:46
@ MMIND_STATUS_RESPONSE_PARSE_ERROR
The response from the device could not be parsed.
Definition ErrorStatus.h:52
ErrorStatus()=default
Default constructor.
std::string errorDescription
Definition ErrorStatus.h:81
bool isOK() const
Returns true if the operation succeeded.
Definition ErrorStatus.h:71
ErrorStatus(ErrorCode code, const std::string &message)
Constructor.
Definition ErrorStatus.h:63