radio_tool 0.2.1
Loading...
Searching...
No Matches
dfu_exception.hpp
1
18#pragma once
19
20#include <exception>
21#include <string>
22
23namespace radio_tool::dfu {
24 class DFUException : public std::exception {
25 public:
26 DFUException(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}