radio_tool 0.2.1
Loading...
Searching...
No Matches
h8sx_exception.hpp
1
18#pragma once
19
20#include <exception>
21#include <string>
22
23namespace radio_tool::h8sx {
24 class H8SXException : public std::exception {
25 public:
26 H8SXException(const std::string& str)
27 : msg(str) { }
28
29 auto what() const noexcept -> const char* {
30 return msg.c_str();
31 }
32 private:
33 const std::string msg;
34 };
35}