|
SOIL C++
C++ Unified Device Interface
|
MQTT Publisher Exception. More...
#include <LocalException.h>
Public Member Functions | |
| Exception (const char *message="", int code=0) | |
| Constructor. More... | |
| Exception (const std::exception &exc) | |
| Construcor from exception. More... | |
| ~Exception (void) | |
| Destructor. More... | |
| const int | code (void) const |
| Result Code. More... | |
Specific subclass of std::runtime_error to distinguish exceptions coming from the MQTT Publisher.
Definition at line 13 of file LocalException.h.
| MQTT::Exception::Exception | ( | const char * | message = "", |
| int | code = 0 |
||
| ) |
Constructor building an expection from a message and result code.
| [in] | message | Message to use for exeption description |
| [in] | code | result code to store. |
Definition at line 5 of file LocalException.cpp.
| MQTT::Exception::Exception | ( | const std::exception & | exc | ) |
Constructor to rethrow an exception that has occured from some other error within the context of the MQTT Publisher.
| [in] | exc | Expcetion to replicate |
Definition at line 9 of file LocalException.cpp.
| MQTT::Exception::~Exception | ( | void | ) |
Standard destructor for the class
Definition at line 14 of file LocalException.cpp.
|
inline |
Get the result code that is stored internally in the exception.
Definition at line 55 of file LocalException.h.