| Visioscan Set SDK Libraries 1.3.5 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
MethodNotSupportedException.h
1#pragma once
2#include <string>
3#include "TranscribableException.h"
4#ifdef STARFLEETTOOLBOX_EXPORTS
5#define METHODNOTSUPPOORTEDEXCPT __declspec(dllexport)
6#else
7#define METHODNOTSUPPOORTEDEXCPT __declspec(dllimport)
8#endif
9 using namespace std;
13 class METHODNOTSUPPOORTEDEXCPT MethodNotSupportedException : exception, public TranscribableException
14{
15 public:
20 explicit MethodNotSupportedException(const char* message, const char* translateCode)
21 : _msg(message) {
22 SetTranslateCode(string(translateCode));
23 }
24
29 explicit MethodNotSupportedException(const string& message, string translateCode)
30 : _msg(message) {
31 SetTranslateCode(translateCode);
32 }
33
38 virtual ~MethodNotSupportedException() noexcept {}
39
44 virtual const char* what() const noexcept {
45 return _msg.c_str();
46 }
47 protected:
48 string _msg;
49 string _code = "";
50};
51
MethodNotSupportedException
An exception used when sensor's method is not supported.
Definition MethodNotSupportedException.h:14
MethodNotSupportedException::~MethodNotSupportedException
virtual ~MethodNotSupportedException() noexcept
Destructor.
Definition MethodNotSupportedException.h:38
MethodNotSupportedException::_msg
string _msg
Definition MethodNotSupportedException.h:48
MethodNotSupportedException::what
virtual const char * what() const noexcept
Overload of message retrie.
Definition MethodNotSupportedException.h:44
MethodNotSupportedException::MethodNotSupportedException
MethodNotSupportedException(const char *message, const char *translateCode)
Copy constructor.
Definition MethodNotSupportedException.h:20
MethodNotSupportedException::MethodNotSupportedException
MethodNotSupportedException(const string &message, string translateCode)
Copy constructor.
Definition MethodNotSupportedException.h:29