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
18namespace optris
19{
20
22class SDKException : public std::exception
23{
24public:
26 SDKException() noexcept = default;
27
33 explicit SDKException(std::string message) noexcept;
34
35
41 const char* what() const noexcept override;
42
43
44private:
46 std::string _message;
47};
48
49
50// Inline implementations
51inline SDKException::SDKException(std::string message) noexcept
52 : _message{std::move(message)}
53{ }
54
55inline const char* SDKException::what() const noexcept
56{
57 return _message.c_str();
58}
59
60} // namespace optris
SDKException() noexcept=default
Constructor.
const char * what() const noexcept override
Returns the error message.
Definition Exceptions.h:55
Main SDK namespace.
Definition DeviceInfo.h:23