Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
SensorErrorException.h
1#pragma once
2#include <string>
3#ifdef STARFLEETTOOLBOX_EXPORTS
4#define SENSORERROREXCPT __declspec(dllexport)
5#else
6#define SENSORERROREXCPT __declspec(dllimport)
7#endif
8using namespace std;
12class SENSORERROREXCPT SensorErrorException : exception
13{
14public:
19 explicit SensorErrorException(const char* message)
20 : _msg(message) {}
26 explicit SensorErrorException(string code, const string& message);
27
32 explicit SensorErrorException(const string& message)
33 : _msg(message) {}
34
39 virtual ~SensorErrorException() noexcept {}
40
45 virtual const char* what() const noexcept {
46 return _msg.c_str();
47 }
48
49 string GetErrorCode();
50protected:
51 string _msg;
52 string _code = "";
53};
An exception used when the sensor returns an error related to a command excecution.
Definition SensorErrorException.h:13
virtual const char * what() const noexcept
Overload of message retrie.
Definition SensorErrorException.h:45
string _msg
Definition SensorErrorException.h:51
SensorErrorException(const string &message)
Copy constructor.
Definition SensorErrorException.h:32
SensorErrorException(const char *message)
Copy constructor.
Definition SensorErrorException.h:19
virtual ~SensorErrorException() noexcept
Destructor.
Definition SensorErrorException.h:39