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
10using namespace std;
11
15class THREADEXCEPT ThreadCreationException: exception, public TranscribableException
16{
17public:
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
42
49 ~ThreadCreationException() override = default;
50
55 const char* what() const noexcept override { return _msg.c_str(); }
56private:
57 const string _msg;
58};
59
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:16
ThreadCreationException(const string &message, string translateCode)
Copy constructor.
Definition ThreadCreationException.h:31
ThreadCreationException(const char *message, const char *translateCode)
Copy constructor.
Definition ThreadCreationException.h:22
const char * what() const noexcept override
Overload of message retrie.
Definition ThreadCreationException.h:55
ThreadCreationException(ThreadCreationException const &) noexcept=default
Copy constructor.
ThreadCreationException & operator=(ThreadCreationException const &) noexcept=default
Assignation operator.
~ThreadCreationException() override=default