Calculator  Step 5
Public Member Functions | List of all members
file_error Class Reference

#include <calc_error.hpp>

Inheritance diagram for file_error:
calc_error

Public Member Functions

 file_error (std::string const &filename)
 
- Public Member Functions inherited from calc_error
 calc_error (std::string const &msg)
 

Detailed Description

Exception class for failing to open a file. Get the system error and include it in the exception message.

Definition at line 50 of file calc_error.hpp.

Constructor & Destructor Documentation

file_error::file_error ( std::string const &  filename)
inline

Definition at line 52 of file calc_error.hpp.

52 : calc_error{filename + ": " + std::strerror(errno)} {}

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