Astarte device API for C++ 0.7.1
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 (std::string_view 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_view 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 ( std::string_view 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: