Beatmup
Beatmup::IOError Class Reference

#include <exception.h>

Inheritance diagram for Beatmup::IOError:
Beatmup::Exception

Public Member Functions

 IOError (const std::string &filename, const char *message)
 
const std::string & getFilename () const
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

Private Attributes

std::string filename
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup::Exception
 Exception (const char *message)
 
template<typename ... Args>
 Exception (const char *message, const Args &... args)
 

Detailed Description

Definition at line 98 of file exception.h.

Constructor & Destructor Documentation

◆ IOError()

Beatmup::IOError::IOError ( const std::string &  filename,
const char *  message 
)
inline

Definition at line 102 of file exception.h.

102  :
103  Exception("Cannot access %s:\n%s", filename.c_str(), message),
104  filename(filename) { }
Exception(const char *message)
Definition: exception.h:41
std::string message
Definition: exception.h:39
std::string filename
Definition: exception.h:100

Member Function Documentation

◆ getFilename()

const std::string& Beatmup::IOError::getFilename ( ) const
inline

Definition at line 105 of file exception.h.

105 { return filename; }

Member Data Documentation

◆ filename

std::string Beatmup::IOError::filename
private

Definition at line 100 of file exception.h.


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