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

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

#include <exceptions.hpp>

+ Inheritance diagram for AstarteDeviceSdk::AstarteFileOpenException:

Public Member Functions

 AstarteFileOpenException (const std::string &filename)
 Constructor for the Astarte file open exception.
 
auto get_filename () const -> const std::string &
 Get the file name for the file which could not be opened.
 
- Public Member Functions inherited from AstarteDeviceSdk::AstarteException
 AstarteException (std::string message)
 Constructor for the Astarte exception.
 
auto what () const noexcept -> const char *override
 Implementation of the virtual method what from the partent std::exception class.
 

Detailed Description

Specific exception for when a file cannot be opened.

Constructor & Destructor Documentation

◆ AstarteFileOpenException()

AstarteDeviceSdk::AstarteFileOpenException::AstarteFileOpenException ( const std::string & filename)
explicit

Constructor for the Astarte file open exception.

Parameters
filenameThe file which could not be opened.

Member Function Documentation

◆ get_filename()

auto AstarteDeviceSdk::AstarteFileOpenException::get_filename ( ) const -> const std::string &
nodiscard

Get the file name for the file which could not be opened.

Returns
The file name for the file whick could not be opened.

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