Calculator Step 6

- Main Page
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
file_error Class Reference

`#include <calc_error.hpp>`

Inheritance diagram for file_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)} {}
calc_error
Definition: calc_error.hpp:11

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

- calc_error.hpp