libfacade 1.1
A library for manipulating PNG images with payloads.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
facade::exception::OpenFileFailure Class Reference

An exception thrown when a file couldn't be opened, either for reading or writing. More...

#include <exception.hpp>

Inheritance diagram for facade::exception::OpenFileFailure:
facade::exception::Exception

Public Member Functions

 OpenFileFailure (const std::string &filename)
 
- Public Member Functions inherited from facade::exception::Exception
 Exception ()
 
 Exception (const std::string &error)
 
const char * what () const noexcept
 Get a C-string representation of the error. Adds compatibility with std::exception.
 

Public Attributes

std::string filename
 The file which could not be opened.
 
- Public Attributes inherited from facade::exception::Exception
std::string error
 The resulting error string provided by the exception.
 

Detailed Description

An exception thrown when a file couldn't be opened, either for reading or writing.

Constructor & Destructor Documentation

◆ OpenFileFailure()

facade::exception::OpenFileFailure::OpenFileFailure ( const std::string &  filename)
inline

Member Data Documentation

◆ filename

std::string facade::exception::OpenFileFailure::filename

The file which could not be opened.


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