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

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