Thermal Camera SDK
10.0.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
Exceptions.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Optris GmbH Co. KG
2
10
11
#pragma once
12
13
#include <exception>
14
#include <string>
15
#include <utility>
16
17
18
namespace
optris
19
{
20
22
class
SDKException
:
public
std::exception
23
{
24
public
:
26
SDKException
() noexcept = default;
27
33
explicit
SDKException
(std::
string
message) noexcept;
34
35
41
const
char
*
what
() const noexcept override;
42
43
44
private:
46
std::
string
_message;
47
};
48
49
50
// Inline implementations
51
inline
SDKException
::
SDKException
(std::
string
message) noexcept
52
: _message{std::move(message)}
53
{ }
54
55
inline
const
char
*
SDKException::what
() const noexcept
56
{
57
return
_message.c_str();
58
}
59
60
}
// namespace optris
optris::SDKException::SDKException
SDKException() noexcept=default
Constructor.
optris::SDKException::what
const char * what() const noexcept override
Returns the error message.
Definition
Exceptions.h:55
optris
Main SDK namespace.
Definition
DeviceInfo.h:23
include
otcsdk
Exceptions.h
Generated by
1.13.2