async_mqtt error class. It is used as CompletionToken parameter and exception.
More...
#include <exception.hpp>
Inherits boost::system::system_error, and boost::totally_ordered< system_error >.
async_mqtt error class. It is used as CompletionToken parameter and exception.
◆ system_error()
async_mqtt::system_error::system_error |
( |
error_code const & | ec = error_code() | ) |
|
|
inline |
constructor
- Parameters
-
ec | error code. If omit, then no error (success). |
◆ message()
std::string async_mqtt::system_error::message |
( |
| ) |
const |
|
inline |
get error message If you want to more detaied error message, call what() instead.
- Returns
- error message string
◆ operator bool()
async_mqtt::system_error::operator bool |
( |
| ) |
const |
|
inline |
bool operator
- Returns
- if error then true, otherwise false.
◆ make_error()
system_error factory function
- Parameters
-
ec | error code. |
wa | detailed error message that is gotten by system_error::what(). |
- Returns
- system_error
The documentation for this struct was generated from the following file: