Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
AstarteDeviceSdk::AstarteFileOpenError Class Reference

Specific error for when a file cannot be opened. More...

#include <errors.hpp>

+ Inheritance diagram for AstarteDeviceSdk::AstarteFileOpenError:

Public Member Functions

 AstarteFileOpenError (std::string_view filename)
 Standard error constructor.
 
 AstarteFileOpenError (std::string_view filename, const AstarteError &other)
 Nested error constructor.
 
- Public Member Functions inherited from AstarteDeviceSdk::AstarteErrorBase
virtual ~AstarteErrorBase ()
 Destructor for the Astarte error.
 
auto message () const -> const std::string &
 Return the message encapsulated in the error.
 
auto type () const -> const std::string &
 Return the type encapsulated in the error.
 
auto nested_error () const -> const std::shared_ptr< AstarteErrorBase > &
 Return the nested error.
 

Additional Inherited Members

- Protected Member Functions inherited from AstarteDeviceSdk::AstarteErrorBase
 AstarteErrorBase (std::string_view type, std::string_view message)
 Constructor for the Astarte error.
 
 AstarteErrorBase (std::string_view type, std::string_view message, const AstarteErrorBase &other)
 Wrapping constructor for the Astarte error.
 

Detailed Description

Specific error for when a file cannot be opened.

Constructor & Destructor Documentation

◆ AstarteFileOpenError() [1/2]

AstarteDeviceSdk::AstarteFileOpenError::AstarteFileOpenError ( std::string_view filename)
explicit

Standard error constructor.

Parameters
filenameThe file which could not be opened.

◆ AstarteFileOpenError() [2/2]

AstarteDeviceSdk::AstarteFileOpenError::AstarteFileOpenError ( std::string_view filename,
const AstarteError & other )
explicit

Nested error constructor.

Parameters
filenameThe file which could not be opened.
otherThe error to nest.

The documentation for this class was generated from the following file: