SOIL C++
C++ Unified Device Interface
LocalException.h
Go to the documentation of this file.
1#pragma once
2#include "constants.h"
3#include <stdexcept>
4
5
6namespace MQTT
7{
13 class DLL Exception : public std::runtime_error
14 {
15 private:
16
22 int _code;
23 public:
24
32 Exception(const char* message = "", int code = 0);
33
40 Exception(const std::exception& exc);
41
47 ~Exception(void);
48
55 inline const int code(void) const { return _code; }
56 };
57}
58
59
60
MQTT Publisher Exception.
const int code(void) const
Result Code.