camcom 1.0.3
 
Loading...
Searching...
No Matches
errors.hpp
Go to the documentation of this file.
1
8
9#ifndef CAMCOM_COMMON_ERRORS_HPP
10#define CAMCOM_COMMON_ERRORS_HPP
11
12#include <exception>
13#include <string>
14
15namespace camcom::common {
19 class Error : public std::exception {
20 public:
21 Error(const std::string& msg) : msg(msg) {}
22
23 const char* what() const noexcept override { return msg.c_str(); }
24
25 std::string msg;
26 };
27
28}
29
30#endif
const char * what() const noexcept override
Definition errors.hpp:23
std::string msg
Definition errors.hpp:25
Error(const std::string &msg)
Definition errors.hpp:21
Definition adapterBase.cpp:18