|
Astarte device API for C++ 0.8.1
Astarte device SDK for C++
|
Specific error for when a file cannot be opened. More...
#include <errors.hpp>
Inheritance diagram for astarte::device::FileOpenError:Public Member Functions | |
| FileOpenError (std::string_view filename) | |
| Standard error constructor. | |
| FileOpenError (std::string_view filename, const Error &other) | |
| Nested error constructor. | |
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 a file cannot be opened.
|
explicit |
Standard error constructor.
| [in] | filename | The path to the file which could not be opened. |
|
explicit |
Nested error constructor.
| [in] | filename | The path to the file which could not be opened. |
| [in] | other | The error to nest. |