Mech-Eye API Reference 2.1.4-alpha
API reference documentation for Mech-Eye 3D Laser Profiler
All Classes Functions Variables Enumerations Enumerator Pages
ErrorStatus.h
1#pragma once
2#include <string>
3
4namespace mmind {
5
6namespace eye {
11{
15 enum ErrorCode {
18 -1,
21 MMIND_STATUS_NO_SUPPORT_ERROR =
22 -3,
28 -5,
31 -6,
33 -7,
36 -8,
39 -9,
42 -100,
44 -101,
45 MMIND_STATUS_ACQUISITION_TRIGGER_WAIT = -12,
46
50 };
54 ErrorStatus() = default;
55
59 ErrorStatus(ErrorCode code, const std::string& message)
60 : errorCode(code), errorDescription(message)
61 {
62 }
63
67 bool isOK() const { return errorCode == MMIND_STATUS_SUCCESS; }
68
73
77 std::string errorDescription;
78};
79
80} // namespace eye
81
82} // namespace mmind
The types of errors.
Definition ErrorStatus.h:11
ErrorCode
The error codes.
Definition ErrorStatus.h:15
@ MMIND_STATUS_SUCCESS
Success code.
Definition ErrorStatus.h:16
@ MMIND_STATUS_DEVICE_OFFLINE
Device is offline. Network issue may be present.
Definition ErrorStatus.h:20
@ MMIND_HANDEYE_CALIBRATION_POSES_INSUFFICIENT
Error: insufficient calibration poses.
Definition ErrorStatus.h:43
@ MMIND_STATUS_INVALID_INPUT_ERROR
The image data is empty. Some error may have occurred on the device.
Definition ErrorStatus.h:32
@ MMIND_STATUS_DEVICE_BUSY
Data acquisition has not been started.
Definition ErrorStatus.h:47
@ MMIND_HANDEYE_CALIBRATION_PATTERN_IMAGE_ERROR
Error occurred while processing the 2D image with feature detection results.
Definition ErrorStatus.h:41
ErrorStatus()=default
Default constructor.
std::string errorDescription
Definition ErrorStatus.h:77
bool isOK() const
Returns true if the operation succeeded.
Definition ErrorStatus.h:67
ErrorStatus(ErrorCode code, const std::string &message)
Constructor with parameters.
Definition ErrorStatus.h:59