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

Loading...
Searching...
No Matches
ThreadCreationException.h
1#pragma once
2#include "TranscribableException.h"
3#include <string>
4#ifdef STARFLEETTOOLBOX_EXPORTS
5#define THREADEXCEPT __declspec(dllexport)
6#else
7#define THREADEXCEPT __declspec(dllimport)
8#endif
9
10 using namespace std;
11
15 class THREADEXCEPT ThreadCreationException: exception, public TranscribableException
16{
17 public:
22 explicit ThreadCreationException(const char* message, const char* translateCode)
23 : _msg(message) {
24 SetTranslateCode(string(translateCode));
25 }
26
31 explicit ThreadCreationException(const string& message, string translateCode)
32 : _msg(message) {
33 SetTranslateCode(translateCode);
34 }
35
41 ThreadCreationException(ThreadCreationException const&) noexcept = default;
42
48 ThreadCreationException& operator=(ThreadCreationException const&) noexcept = default;
49 ~ThreadCreationException() override = default;
50
55 const char* what() const noexcept override { return _msg.c_str(); }
56 private:
57 const string _msg;
58};
59
ThreadCreationException
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:16
ThreadCreationException::ThreadCreationException
ThreadCreationException(const string &message, string translateCode)
Copy constructor.
Definition ThreadCreationException.h:31
ThreadCreationException::ThreadCreationException
ThreadCreationException(const char *message, const char *translateCode)
Copy constructor.
Definition ThreadCreationException.h:22
ThreadCreationException::what
const char * what() const noexcept override
Overload of message retrie.
Definition ThreadCreationException.h:55
ThreadCreationException::ThreadCreationException
ThreadCreationException(ThreadCreationException const &) noexcept=default
Copy constructor.
ThreadCreationException::operator=
ThreadCreationException & operator=(ThreadCreationException const &) noexcept=default
Assignation operator.
ThreadCreationException::~ThreadCreationException
~ThreadCreationException() override=default