|
Astarte device API for C++ 0.8.1
Astarte device SDK for C++
|
Base error class representing any possible error from the Astarte device library. More...
#include <errors.hpp>
Inheritance diagram for astarte::device::ErrorBase:Public Member Functions | |
| 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. | |
Protected Member Functions | |
| 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. | |
Base error class representing any possible error from the Astarte device library.
Provides the fundamental structure for error reporting, including type identification, human-readable messages, and support for nested (wrapped) errors.
|
virtualdefault |
Destructor for the Astarte error.
|
default |
Default copy constructor.
|
delete |
Delete move constructor.
|
explicitprotected |
|
explicitprotected |
|
nodiscard |
Retrieves the error message.
|
nodiscard |
Retrieves the nested error, if any.
Default copy assignment operator.
Default move assignment operator.
|
nodiscard |
Retrieves the error type string.