Visioscan Set SDK Libraries 1.0.28
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
ParameterNotSupportedException.h
1#pragma once
2#include <string>
3#include "TranscribableException.h"
4#ifdef STARFLEETTOOLBOX_EXPORTS
5#define NOTSUPPOORTEDEXCPT __declspec(dllexport)
6#else
7#define NOTSUPPOORTEDEXCPT __declspec(dllimport)
8#endif
9using namespace std;
13class NOTSUPPOORTEDEXCPT ParameterNotSupportedException : exception, public TranscribableException
14{
15public:
20 explicit ParameterNotSupportedException(const char* message, const char* translateCode)
21 : _msg(message) {
22 SetTranslateCode(string(translateCode));
23 }
24
29 explicit ParameterNotSupportedException(const string& message, string translateCode)
30 : _msg(message) {
31 SetTranslateCode(translateCode);
32 }
33
38 virtual ~ParameterNotSupportedException() noexcept {}
39
44 virtual const char* what() const noexcept {
45 return _msg.c_str();
46 }
47protected:
48 string _msg;
49 string _code = "";
50};
An exception used when not supported values are fetched to the sensor.
Definition ParameterNotSupportedException.h:14
string _msg
Definition ParameterNotSupportedException.h:48
virtual ~ParameterNotSupportedException() noexcept
Destructor.
Definition ParameterNotSupportedException.h:38
virtual const char * what() const noexcept
Overload of message retrie.
Definition ParameterNotSupportedException.h:44
ParameterNotSupportedException(const char *message, const char *translateCode)
Copy constructor.
Definition ParameterNotSupportedException.h:20
ParameterNotSupportedException(const string &message, string translateCode)
Copy constructor.
Definition ParameterNotSupportedException.h:29