Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
ThreadCreationException.h
1#pragma once
2#include <string>
3#ifdef STARFLEETTOOLBOX_EXPORTS
4#define THREADEXCEPT __declspec(dllexport)
5#else
6#define THREADEXCEPT __declspec(dllimport)
7#endif
8
9using namespace std;
10
14class THREADEXCEPT ThreadCreationException: exception
15{
16public:
21 explicit ThreadCreationException(const char* message) : _msg(message) {}
22
27 explicit ThreadCreationException(const string& message)
28 : _msg(message) {}
29
36
43 ~ThreadCreationException() override = default;
44
49 const char* what() const noexcept override { return _msg.c_str(); }
50private:
51 const string _msg;
52};
53
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:15
ThreadCreationException(const char *message)
Copy constructor.
Definition ThreadCreationException.h:21
ThreadCreationException(const string &message)
Copy constructor.
Definition ThreadCreationException.h:27
const char * what() const noexcept override
Overload of message retrie.
Definition ThreadCreationException.h:49
ThreadCreationException(ThreadCreationException const &) noexcept=default
Copy constructor.
ThreadCreationException & operator=(ThreadCreationException const &) noexcept=default
Assignation operator.
~ThreadCreationException() override=default