|
Astarte device API for C++ 0.8.1
Astarte device SDK for C++
|
Specific error for when an operation failed due to an internal error. More...
#include <errors.hpp>
Inheritance diagram for astarte::device::mqtt::MqttError:Public Member Functions | |
| MqttError (std::string_view message) | |
| Standard error constructor. | |
| MqttError () | |
| Error constructor with no message. | |
| MqttError (std::string_view message, const Error &other) | |
| Nested error constructor. | |
| MqttError (const Error &other) | |
| Nested error constructor with no message. | |
Public Member Functions inherited from astarte::device::ErrorBase | |
| virtual | ~ErrorBase ()=default |
| Destructor for the Astarte error. | |
| ErrorBase (const ErrorBase &)=default | |
| Default copy constructor. | |
| auto | operator= (const ErrorBase &) -> ErrorBase &=default |
| Default copy assignment operator. | |
| ErrorBase (ErrorBase &&)=delete | |
| Delete move constructor. | |
| auto | operator= (ErrorBase &&) -> ErrorBase &=default |
| Default move assignment operator. | |
| auto | message () const -> const std::string & |
| Retrieves the error message. | |
| auto | type () const -> const std::string & |
| Retrieves the error type string. | |
| auto | nested_error () const -> const std::shared_ptr< ErrorBase > & |
| Retrieves the nested error, if any. | |
Additional Inherited Members | |
Protected Member Functions inherited from astarte::device::ErrorBase | |
| ErrorBase (std::string_view type, std::string_view message) | |
| Constructor for the Astarte error. | |
| ErrorBase (std::string_view type, std::string_view message, const ErrorBase &other) | |
| Wrapping constructor for the Astarte error. | |
Specific error for when an operation failed due to an internal error.
|
explicit |
Standard error constructor.
| [in] | message | The error message. |
|
explicit |
Error constructor with no message.
|
explicit |
Nested error constructor.
| [in] | message | The error message. |
| [in] | other | The error to nest. |
|
explicit |
Nested error constructor with no message.
| [in] | other | The error to nest. |