Base mqtt::exception.
More...
#include <exception.h>
|
int | code_ |
| The error code from the C library.
|
|
string | msg_ |
| The error message from the C library.
|
|
Base mqtt::exception.
This wraps the error codes which originate from the underlying C library.
mqtt::exception::exception |
( |
int |
code | ) |
|
|
inlineexplicit |
Creates an MQTT exception.
- Parameters
-
code | The error code from the C library. |
mqtt::exception::exception |
( |
int |
code, |
|
|
const string & |
msg |
|
) |
| |
|
inline |
Creates an MQTT exception.
- Parameters
-
code | The error code from the C library. |
msg | The text message for the error. |
string mqtt::exception::to_string |
( |
| ) |
const |
|
inline |
Gets a string representation of this exception.
- Returns
- A string representation of this exception.
The documentation for this class was generated from the following file: